Lines Matching refs:file
44 # Either the file system encoding is None, or the file name
45 # cannot be encoded in the file system encoding.
355 self.file = os_helper.TESTFN
356 with open(self.file, "w") as tmp:
357 tmp.write("This was read from a file.")
360 os_helper.unlink(self.file)
376 src = InputSource(self.file)
386 src = InputSource(self.file)
396 src = InputSource(self.file)
400 b"This was read from a file.")
404 prep = prepare_input_source(self.file)
407 b"This was read from a file.")
411 prep = prepare_input_source(FakePath(self.file))
414 b"This was read from a file.")
417 # If the source is a binary file-like object, use it as a byte
425 # If the source is a text file-like object, use it as a character
1271 name = "a file name"