Lines Matching refs:TESTFN
1 from test.test_support import (TESTFN, run_unittest, import_module, unlink,
13 if os.path.exists(TESTFN):
14 os.unlink(TESTFN)
18 os.unlink(TESTFN)
26 f = open(TESTFN, 'w+')
105 f = open(TESTFN)
122 open(TESTFN, "wb").write("a"*mapsize)
123 f = open(TESTFN, "rb")
172 self.assertEqual(open(TESTFN, "rb").read(), 'a'*mapsize,
177 f = open(TESTFN, "r+b")
195 f = open(TESTFN, 'r+b')
200 f = open(TESTFN, "r+b")
209 f = open(TESTFN, 'rb')
216 f = open(TESTFN, "r+b")
223 self.assertEqual(open(TESTFN, "rb").read(), 'c'*mapsize,
231 f = open(TESTFN, "r+b")
237 f = open(TESTFN, "r+b")
245 with open(TESTFN, "r+b") as f:
258 f = open(TESTFN, 'w+')
276 f = open(TESTFN, 'w+')
294 f = open(TESTFN, 'w+')
312 f = open(TESTFN, 'w+')
317 f = open(TESTFN)
326 f = open(TESTFN, "w+")
331 f = open(TESTFN, "rb+")
344 with open(TESTFN, "wb") as f:
347 with open(TESTFN, "rb") as f:
358 with open(TESTFN, "wb") as f:
361 with open(TESTFN, "w+b") as f:
367 f = open(TESTFN, 'w+')
467 f = open (TESTFN, 'w+b')
469 with open(TESTFN, "rb") as f :
476 f = open (TESTFN, 'w+b')
486 f = open(TESTFN, "r+b")
498 f = open(TESTFN, "r+b")
517 f = open(TESTFN)
528 os.unlink(TESTFN)
541 open(TESTFN, "wb").write("a"*mapsize)
542 f = open(TESTFN, "rb")
553 open(TESTFN, "wb").write("x"*len(data))
554 f = open(TESTFN, "r+b")
629 open(TESTFN, "wb").write("x"*10)
630 f = open(TESTFN, "r+b")
680 unlink(TESTFN)
683 unlink(TESTFN)
689 f = open(TESTFN, 'w+b')