Lines Matching refs:TESTFN
18 from test.test_support import TESTFN, run_unittest, requires
25 self.f = open(TESTFN, 'wb')
30 os.remove(TESTFN)
63 self.f = open(TESTFN, 'rb')
72 self.f = open(TESTFN, 'rb')
96 self.f = open(TESTFN, 'rb')
102 self.assertTrue(repr(self.f).startswith("<open file '" + TESTFN))
113 self.f = open(TESTFN, 'rb')
115 self.assertEqual(f.name, TESTFN)
170 self.f = open(TESTFN, mode)
175 self.f = open(TESTFN, mode)
180 self.f = open(TESTFN, mode)
186 self.f = open(TESTFN, mode)
190 self.f = open(TESTFN, mode)
194 self.f = open(TESTFN, mode)
217 f = open(TESTFN, mode)
226 for name in (TESTFN, unicode(TESTFN), unicode(TESTFN + '\t')):
252 f = open(unicode(TESTFN), "w")
253 self.assertTrue(repr(f).startswith("<open file u'" + TESTFN))
255 os.unlink(TESTFN)
261 f = open(TESTFN, bad_mode)
265 if TESTFN in s or bad_mode not in s:
278 f = open(TESTFN, 'w', s)
282 f = open(TESTFN, 'r', s)
291 os.unlink(TESTFN)
296 f = open(TESTFN, 'wb')
300 f = open(TESTFN,'rb+')
312 size = os.path.getsize(TESTFN)
319 os.unlink(TESTFN)
348 bag = open(TESTFN, "w")
354 f = open(TESTFN)
374 f = open(TESTFN)
416 f = open(TESTFN)
430 os.unlink(TESTFN)
456 with open(TESTFN, "wb") as fp:
459 with open(TESTFN, "rb") as fp:
478 with C(TESTFN, 'w') as f:
492 self.filename = TESTFN
903 if os.path.exists(TESTFN):
904 os.unlink(TESTFN)