Searched refs:TESTFN2 (Results 1 - 6 of 6) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_zipfile.py | 34 TESTFN2 = TESTFN + "2" variable 45 yield TESTFN2 164 path = pathlib.Path(TESTFN2) 296 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipfp: 300 with zipfile.ZipFile(TESTFN2, "r", self.compression) as zipfp: 306 zipfp = zipfile.ZipFile(TESTFN2, "w") 312 zipfp = zipfile.ZipFile(TESTFN2, "w", compresslevel=1) 407 with zipfile.ZipFile(TESTFN2, "w", compresslevel=1) as zipfp: 454 unlink(TESTFN2) 480 with zipfile.ZipFile(TESTFN2, " [all...] |
H A D | test_largefile.py | 20 TESTFN2 = TESTFN + '2' variable 52 unlink(TESTFN2) 180 shutil.copyfile(TESTFN, TESTFN2) 181 self.assertEqual(os.path.getsize(TESTFN2), size) 182 with open(TESTFN2, 'rb') as f: 208 with conn, open(TESTFN2, 'wb') as f: 235 self.assertEqual(os.path.getsize(TESTFN2), size) 236 with open(TESTFN2, 'rb') as f: 288 unlink(TESTFN2)
|
H A D | test_pipes.py | 18 TESTFN2 = TESTFN + "2" variable 25 for f in (TESTFN, TESTFN2): 45 t.copy(TESTFN, TESTFN2) 46 with open(TESTFN2) as f: 67 with open(TESTFN2, 'w') as f: 70 t.copy(TESTFN, TESTFN2) 71 with open(TESTFN2) as f:
|
H A D | test_zipfile64.py | 24 TESTFN2 = TESTFN + "2" variable 71 # Try the temp file first. If we do TESTFN2 first, then it hogs 76 self.zipTest(TESTFN2, zipfile.ZIP_STORED) 80 # Try the temp file first. If we do TESTFN2 first, then it hogs 85 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED) 88 for fname in TESTFN, TESTFN2: 144 os_helper.unlink(TESTFN2)
|
H A D | test_shutil.py | 37 TESTFN2 = TESTFN + "2" variable 728 shutil.copytree(TESTFN, TESTFN2) 738 shutil.rmtree(TESTFN2, ignore_errors=True) 1277 shutil.copyfile, TESTFN, TESTFN2) 2340 os_helper.unlink(TESTFN2) 2343 os_helper.unlink(TESTFN2) 2348 with open(TESTFN2, "wb") as dst: 2359 self.assert_files_eq(TESTFN, TESTFN2) 2377 shutil.copyfile(TESTFN, TESTFN2) 2390 shutil.copyfile(fname, TESTFN2) [all...] |
H A D | test_os.py | 295 TESTFN2 = os_helper.TESTFN + ".2" 297 self.addCleanup(os_helper.unlink, TESTFN2) 300 create_file(TESTFN2, b"2") 302 os.replace(os_helper.TESTFN, TESTFN2) 304 with open(TESTFN2, 'r', encoding='utf-8') as f: 327 TESTFN2 = os_helper.TESTFN + ".3" 337 out_file = open(TESTFN2, 'w+b') 338 self.addCleanup(os_helper.unlink, TESTFN2) 356 with open(TESTFN2, 'rb') as in_file: 412 TESTFN2 [all...] |
Completed in 9 milliseconds