Home | History | Annotate | Download | only in test

Lines Matching defs:openhook

43     def openhook(self, filename, mode):
238 # cannot use openhook and inplace mode
239 fi = FileInput(inplace=1, openhook=lambda f,m: None)
241 "and openhook arguments are given")
245 fi = FileInput(openhook=1)
246 self.fail("FileInput should check openhook for being callable")
252 fi = FileInput(files=t1, openhook=hook_encoded("utf-7"))
267 fi = FileInput(files=TESTFN, openhook=hook_encoded('ascii'))
280 fi = FileInput(files=['line1\nline2', 'line3\n'], openhook=src.openhook)
296 fi = FileInput(files=['line1\nline2', 'line3\n'], openhook=src.openhook)
321 openhook=hook_encoded('utf-7'))