Lines Matching refs:FileIO
24 self.f = self.FileIO(TESTFN, 'w')
81 with self.FileIO(TESTFN, 'r') as f:
91 with self.FileIO(TESTFN, 'r') as f:
97 with self.FileIO(TESTFN, 'r') as f:
107 with self.FileIO(TESTFN, 'r') as f:
113 with self.FileIO(TESTFN, 'r') as f:
119 with self.FileIO(TESTFN, 'r') as f:
128 self.f = self.FileIO(TESTFN, 'rb')
136 self.f = self.FileIO(TESTFN, 'rb')
148 self.f = self.FileIO(TESTFN, 'r')
172 with self.FileIO(fd, 'r', closefd=False) as f:
193 f = self.FileIO(TESTFN, 'r')
226 self.FileIO('.', 'r')
237 self.FileIO(fd, 'r')
322 self.f = self.FileIO(TESTFN, 'r')
343 FileIO = _io.FileIO variable in CAutoFileTests
347 FileIO = _pyio.FileIO variable in PyAutoFileTests
355 f = self.FileIO(TESTFN, "w")
361 f = self.FileIO(TESTFN, "r")
367 f = self.FileIO(TESTFN, "a+")
376 f = self.FileIO("/dev/tty", "a")
399 f = self.FileIO(TESTFN, mode)
415 with self.FileIO(TESTFN, modes[0]) as f:
423 f = self.FileIO(str(TESTFN), "w")
433 f = self.FileIO(fn, "w")
450 f = self.FileIO(fn, "w")
461 self.assertRaises(ValueError, self.FileIO, fn_with_NUL, 'w')
462 self.assertRaises(ValueError, self.FileIO, bytes(fn_with_NUL, 'ascii'), 'w')
465 self.assertRaises(ValueError, self.FileIO, -10)
466 self.assertRaises(OSError, self.FileIO, make_bad_fd())
475 f = self.FileIO(TESTFN, bad_mode)
488 f = self.FileIO(TESTFN, 'w')
503 f = self.FileIO(TESTFN, 'w')
507 f = self.FileIO(TESTFN,'r+')
547 self.assertRaises(TypeError, self.FileIO, "1", 0, 0)
552 self.assertRaises(TypeError, self.FileIO, [])
554 self.assertRaises(ValueError, self.FileIO, "/some/invalid/name", "rt")
559 class MyFileIO(self.FileIO):
570 FileIO = _io.FileIO variable in COtherFileTests
577 self.assertRaises(TypeError, self.FileIO, _testcapi.INT_MAX + 1)
578 self.assertRaises(TypeError, self.FileIO, _testcapi.INT_MIN - 1)
583 with self.FileIO(__file__, "rb") as f:
591 FileIO = _pyio.FileIO variable in PyOtherFileTests
597 with self.FileIO(__file__, "rb") as f: