/external/python/cpython2/Lib/test/ |
D | test_macostools.py | 13 TESTFN2 = test_support.TESTFN + '2' variable 29 test_support.unlink(TESTFN2) 35 fp = open(TESTFN2, 'r') 43 rfp = MacOS.openrf(TESTFN2, '*rb') 58 test_support.unlink(TESTFN2) 59 macostools.copy(test_support.TESTFN, TESTFN2) 64 test_support.unlink(TESTFN2) 65 macostools.mkalias(test_support.TESTFN, TESTFN2) 66 fss, _, _ = Carbon.File.ResolveAliasFile(TESTFN2, 0) 77 test_support.unlink(TESTFN2) [all …]
|
D | test_zipfile.py | 31 TESTFN2 = TESTFN + "2" variable 119 for f in (TESTFN2, TemporaryFile(), StringIO()): 147 for f in (TESTFN2, TemporaryFile(), StringIO()): 152 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp: 158 with zipfile.ZipFile(TESTFN2, "r") as zipfp: 186 for f in (TESTFN2, TemporaryFile(), StringIO()): 254 for f in (TESTFN2, TemporaryFile(), StringIO()): 258 for f in (TESTFN2, TemporaryFile(), StringIO()): 262 for f in (TESTFN2, TemporaryFile(), StringIO()): 266 for f in (TESTFN2, TemporaryFile(), StringIO()): [all …]
|
D | test_applesingle.py | 22 TESTFN2 = test_support.TESTFN + '2' variable 37 os.unlink(TESTFN2) 43 fp = MacOS.openrf(TESTFN2, '*rb') 45 fp = open(TESTFN2, 'rb') 51 os.unlink(TESTFN2) 54 applesingle.decode(test_support.TESTFN, TESTFN2) 60 os.unlink(TESTFN2) 63 applesingle.decode(test_support.TESTFN, TESTFN2, resonly=True)
|
D | test_pipes.py | 10 TESTFN2 = TESTFN + "2" variable 17 for f in (TESTFN, TESTFN2): 34 t.copy(TESTFN, TESTFN2) 35 with open(TESTFN2) as f: 51 with open(TESTFN2, 'w') as f: 54 t.copy(TESTFN, TESTFN2) 55 with open(TESTFN2) as f:
|
D | test_zipfile64.py | 28 TESTFN2 = TESTFN + "2" variable 85 self.zipTest(TESTFN2, zipfile.ZIP_STORED) 94 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED) 97 for fname in TESTFN, TESTFN2: 157 test_support.unlink(TESTFN2)
|
D | test_macos.py | 8 TESTFN2 = test_support.TESTFN + '2' variable
|
D | test_shutil.py | 22 TESTFN2 = TESTFN + "2" variable 319 shutil.copyfile, TESTFN, TESTFN2) 334 shutil.copytree(TESTFN, TESTFN2) 344 shutil.rmtree(TESTFN2, ignore_errors=True)
|
/external/python/cpython3/Lib/test/ |
D | test_zipfile.py | 26 TESTFN2 = TESTFN + "2" variable 37 yield TESTFN2 156 path = pathlib.Path(TESTFN2) 288 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipfp: 292 with zipfile.ZipFile(TESTFN2, "r", self.compression) as zipfp: 298 zipfp = zipfile.ZipFile(TESTFN2, "w") 304 zipfp = zipfile.ZipFile(TESTFN2, "w", compresslevel=1) 399 with zipfile.ZipFile(TESTFN2, "w", compresslevel=1) as zipfp: 446 unlink(TESTFN2) 472 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp: [all …]
|
D | test_largefile.py | 19 TESTFN2 = TESTFN + '2' variable 51 unlink(TESTFN2) 177 shutil.copyfile(TESTFN, TESTFN2) 178 self.assertEqual(os.path.getsize(TESTFN2), size) 179 with open(TESTFN2, 'rb') as f: 205 with conn, open(TESTFN2, 'wb') as f: 232 self.assertEqual(os.path.getsize(TESTFN2), size) 233 with open(TESTFN2, 'rb') as f: 285 unlink(TESTFN2)
|
D | test_pipes.py | 11 TESTFN2 = TESTFN + "2" variable 18 for f in (TESTFN, TESTFN2): 38 t.copy(TESTFN, TESTFN2) 39 with open(TESTFN2) as f: 60 with open(TESTFN2, 'w') as f: 63 t.copy(TESTFN, TESTFN2) 64 with open(TESTFN2) as f:
|
D | test_zipfile64.py | 22 TESTFN2 = TESTFN + "2" variable 74 self.zipTest(TESTFN2, zipfile.ZIP_STORED) 83 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED) 86 for fname in TESTFN, TESTFN2: 142 support.unlink(TESTFN2)
|
D | test_shutil.py | 35 TESTFN2 = TESTFN + "2" variable 696 shutil.copytree(TESTFN, TESTFN2) 706 shutil.rmtree(TESTFN2, ignore_errors=True) 1215 shutil.copyfile, TESTFN, TESTFN2) 2188 support.unlink(TESTFN2) 2191 support.unlink(TESTFN2) 2196 with open(TESTFN2, "wb") as dst: 2207 self.assert_files_eq(TESTFN, TESTFN2) 2225 shutil.copyfile(TESTFN, TESTFN2) 2238 shutil.copyfile(fname, TESTFN2) [all …]
|
D | test_os.py | 267 TESTFN2 = support.TESTFN + ".2" 269 self.addCleanup(support.unlink, TESTFN2) 272 create_file(TESTFN2, b"2") 274 os.replace(support.TESTFN, TESTFN2) 276 with open(TESTFN2, 'r') as f: 299 TESTFN2 = support.TESTFN + ".3" 309 out_file = open(TESTFN2, 'w+b') 310 self.addCleanup(support.unlink, TESTFN2) 328 with open(TESTFN2, 'rb') as in_file: 3315 TESTFN2 = support.TESTFN + "2" [all …]
|