Lines Matching refs:_FileIO
18 from _io import FileIO as _FileIO unknown
24 self.f = _FileIO(TESTFN, 'w')
71 self.f = _FileIO(TESTFN, 'r')
79 self.f = _FileIO(TESTFN, 'rb')
87 self.f = _FileIO(TESTFN, 'rb')
98 self.f = _FileIO(TESTFN, 'r')
121 f = _FileIO(TESTFN, 'r')
156 _FileIO('.', 'r')
167 _FileIO(fd, 'r')
252 self.f = _FileIO(TESTFN, 'r')
276 f = _FileIO(TESTFN, "w")
282 f = _FileIO(TESTFN, "r")
288 f = _FileIO(TESTFN, "a+")
300 f = _FileIO("/dev/tty", "a")
321 f = _FileIO(TESTFN, mode)
337 with _FileIO(TESTFN, modes[0]) as f:
345 f = _FileIO(str(TESTFN), "w")
355 f = _FileIO(fn, "w")
366 self.assertRaises(TypeError, _FileIO, fn_with_NUL, 'w')
367 self.assertRaises(TypeError, _FileIO, fn_with_NUL.encode('ascii'), 'w')
370 self.assertRaises(ValueError, _FileIO, -10)
371 self.assertRaises(OSError, _FileIO, make_bad_fd())
380 self.assertRaises(TypeError, _FileIO, _testcapi.INT_MAX + 1)
381 self.assertRaises(TypeError, _FileIO, _testcapi.INT_MIN - 1)
387 f = _FileIO(TESTFN, bad_mode)
400 f = _FileIO(TESTFN, 'w')
415 f = _FileIO(TESTFN, 'w')
419 f = _FileIO(TESTFN,'r+')
459 self.assertRaises(TypeError, _FileIO, "1", 0, 0)
464 self.assertRaises(TypeError, _FileIO, [])
466 self.assertRaises(ValueError, _FileIO, "/some/invalid/name", "rt")
476 with _FileIO(filename):
492 class MyFileIO(_FileIO):