Lines Matching refs:TESTFN
1 from test.support import findfile, TESTFN, unlink
26 unlink(TESTFN)
71 f = self.create_file(TESTFN)
82 with self.module.open(TESTFN, 'wb'):
85 with open(TESTFN, 'wb') as testfile:
90 with open(TESTFN, 'wb') as testfile:
97 with open(TESTFN, 'rb') as testfile:
111 with self.module.open(TESTFN, 'wb') as f:
116 with self.module.open(TESTFN) as f:
126 f = self.create_file(TESTFN)
131 self.check_file(TESTFN, self.nframes, self.frames)
134 f = self.create_file(TESTFN)
139 self.check_file(TESTFN, self.nframes, self.frames)
142 f = self.create_file(TESTFN)
147 self.check_file(TESTFN, self.nframes, self.frames)
150 f = self.create_file(TESTFN)
155 self.check_file(TESTFN, self.nframes, self.frames)
158 with open(TESTFN, 'wb') as testfile:
165 with open(TESTFN, 'rb') as testfile:
170 with open(TESTFN, 'wb') as testfile:
179 with open(TESTFN, 'rb') as testfile:
184 with open(TESTFN, 'wb') as testfile:
191 with open(TESTFN, 'rb') as testfile:
196 with self.create_file(TESTFN) as f:
200 with UnseekableIO(TESTFN, 'rb') as testfile:
204 with UnseekableIO(TESTFN, 'wb') as testfile:
209 self.check_file(TESTFN, self.nframes, self.frames)
212 with UnseekableIO(TESTFN, 'wb') as testfile:
225 with open(TESTFN, 'rb') as testfile:
230 with UnseekableIO(TESTFN, 'wb') as testfile:
243 with open(TESTFN, 'rb') as testfile:
267 with open(TESTFN, 'wb') as testfile:
301 fout = self.fout = self.module.open(TESTFN, 'wb')
310 fout = self.fout = self.module.open(TESTFN, 'rb')
317 with open(TESTFN, 'wb') as testfile:
322 with open(TESTFN, 'rb') as testfile: