Home
last modified time | relevance | path

Searched refs:TESTFN2 (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/test/
Dtest_zipfile.py28 TESTFN2 = TESTFN + "2" variable
39 yield TESTFN2
158 path = pathlib.Path(TESTFN2)
290 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipfp:
294 with zipfile.ZipFile(TESTFN2, "r", self.compression) as zipfp:
300 zipfp = zipfile.ZipFile(TESTFN2, "w")
306 zipfp = zipfile.ZipFile(TESTFN2, "w", compresslevel=1)
401 with zipfile.ZipFile(TESTFN2, "w", compresslevel=1) as zipfp:
448 unlink(TESTFN2)
474 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
[all …]
Dtest_largefile.py20 TESTFN2 = TESTFN + '2' variable
52 unlink(TESTFN2)
178 shutil.copyfile(TESTFN, TESTFN2)
179 self.assertEqual(os.path.getsize(TESTFN2), size)
180 with open(TESTFN2, 'rb') as f:
206 with conn, open(TESTFN2, 'wb') as f:
233 self.assertEqual(os.path.getsize(TESTFN2), size)
234 with open(TESTFN2, 'rb') as f:
286 unlink(TESTFN2)
Dtest_pipes.py16 TESTFN2 = TESTFN + "2" variable
23 for f in (TESTFN, TESTFN2):
43 t.copy(TESTFN, TESTFN2)
44 with open(TESTFN2) as f:
65 with open(TESTFN2, 'w') as f:
68 t.copy(TESTFN, TESTFN2)
69 with open(TESTFN2) as f:
Dtest_zipfile64.py23 TESTFN2 = TESTFN + "2" variable
75 self.zipTest(TESTFN2, zipfile.ZIP_STORED)
84 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED)
87 for fname in TESTFN, TESTFN2:
143 os_helper.unlink(TESTFN2)
Dtest_shutil.py36 TESTFN2 = TESTFN + "2" variable
703 shutil.copytree(TESTFN, TESTFN2)
713 shutil.rmtree(TESTFN2, ignore_errors=True)
1246 shutil.copyfile, TESTFN, TESTFN2)
2281 os_helper.unlink(TESTFN2)
2284 os_helper.unlink(TESTFN2)
2289 with open(TESTFN2, "wb") as dst:
2300 self.assert_files_eq(TESTFN, TESTFN2)
2318 shutil.copyfile(TESTFN, TESTFN2)
2331 shutil.copyfile(fname, TESTFN2)
[all …]
Dtest_os.py287 TESTFN2 = os_helper.TESTFN + ".2"
289 self.addCleanup(os_helper.unlink, TESTFN2)
292 create_file(TESTFN2, b"2")
294 os.replace(os_helper.TESTFN, TESTFN2)
296 with open(TESTFN2, 'r', encoding='utf-8') as f:
319 TESTFN2 = os_helper.TESTFN + ".3"
329 out_file = open(TESTFN2, 'w+b')
330 self.addCleanup(os_helper.unlink, TESTFN2)
348 with open(TESTFN2, 'rb') as in_file:
404 TESTFN2 = os_helper.TESTFN + ".3"
[all …]