Lines Matching refs:TESTFN
17 from test.test_support import TESTFN, run_unittest
24 self.f = open(TESTFN, 'wb')
29 os.remove(TESTFN)
62 self.f = open(TESTFN, 'rb')
71 self.f = open(TESTFN, 'rb')
94 self.assertTrue(repr(self.f).startswith("<open file '" + TESTFN))
105 self.f = open(TESTFN, 'rb')
107 self.assertEqual(f.name, TESTFN)
162 self.f = open(TESTFN, mode)
167 self.f = open(TESTFN, mode)
172 self.f = open(TESTFN, mode)
178 self.f = open(TESTFN, mode)
182 self.f = open(TESTFN, mode)
186 self.f = open(TESTFN, mode)
209 f = open(TESTFN, mode)
218 for name in (TESTFN, unicode(TESTFN), unicode(TESTFN + '\t')):
238 f = open(unicode(TESTFN), "w")
239 self.assertTrue(repr(f).startswith("<open file u'" + TESTFN))
241 os.unlink(TESTFN)
247 f = open(TESTFN, bad_mode)
251 if TESTFN in s or bad_mode not in s:
264 f = open(TESTFN, 'w', s)
268 f = open(TESTFN, 'r', s)
277 os.unlink(TESTFN)
282 f = open(TESTFN, 'wb')
286 f = open(TESTFN,'rb+')
298 size = os.path.getsize(TESTFN)
305 os.unlink(TESTFN)
334 bag = open(TESTFN, "w")
340 f = open(TESTFN)
360 f = open(TESTFN)
402 f = open(TESTFN)
416 os.unlink(TESTFN)
430 with C(TESTFN, 'w') as f:
444 self.filename = TESTFN
822 # Historically, these tests have been sloppy about removing TESTFN.
828 if os.path.exists(TESTFN):
829 os.unlink(TESTFN)