/external/python/cpython2/Lib/test/ |
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_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_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 | 21 TESTFN2 = TESTFN + "2" variable 35 yield TESTFN2 154 path = pathlib.Path(TESTFN2) 286 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipfp: 290 with zipfile.ZipFile(TESTFN2, "r", self.compression) as zipfp: 296 zipfp = zipfile.ZipFile(TESTFN2, "w") 302 zipfp = zipfile.ZipFile(TESTFN2, "w", compresslevel=1) 397 with zipfile.ZipFile(TESTFN2, "w", compresslevel=1) as zipfp: 407 unlink(TESTFN2) 433 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp: [all …]
|
D | test_pipes.py | 11 TESTFN2 = TESTFN + "2" variable 18 for f in (TESTFN, TESTFN2): 39 t.copy(TESTFN, TESTFN2) 40 with open(TESTFN2) as f: 61 with open(TESTFN2, 'w') as f: 64 t.copy(TESTFN, TESTFN2) 65 with open(TESTFN2) as f:
|
D | test_zipfile64.py | 22 TESTFN2 = TESTFN + "2" variable 77 self.zipTest(TESTFN2, zipfile.ZIP_STORED) 86 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED) 89 for fname in TESTFN, TESTFN2: 151 support.unlink(TESTFN2)
|
D | test_os.py | 208 TESTFN2 = support.TESTFN + ".2" 210 self.addCleanup(support.unlink, TESTFN2) 213 create_file(TESTFN2, b"2") 215 os.replace(support.TESTFN, TESTFN2) 217 with open(TESTFN2, 'r') as f: 2893 TESTFN2 = support.TESTFN + "2" 2896 self.addCleanup(support.unlink, TESTFN2) 2897 create_file(TESTFN2, file_data) 2899 with open(TESTFN2, 'rb') as f:
|
D | test_shutil.py | 27 TESTFN2 = TESTFN + "2" variable 834 shutil.copyfile, TESTFN, TESTFN2) 853 shutil.copytree(TESTFN, TESTFN2) 863 shutil.rmtree(TESTFN2, ignore_errors=True)
|