Lines Matching refs:TESTFN2

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:
436 with zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED) as zipfp:
441 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
444 with zipfile.ZipFile(TESTFN2, "a", zipfile.ZIP_STORED) as zipfp:
453 with open(TESTFN2, 'wb') as f:
456 with zipfile.ZipFile(TESTFN2, "a", zipfile.ZIP_STORED) as zipfp:
459 with open(TESTFN2, 'rb') as f:
464 with open(TESTFN2, 'rb') as f:
477 with open(TESTFN2, 'wb') as f:
481 with zipfile.ZipFile(TESTFN2) as zipfp:
491 with open(TESTFN2, 'wb') as f:
495 with zipfile.ZipFile(TESTFN2, 'a') as zipfp:
499 with open(TESTFN2, 'rb') as f:
508 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
510 with open(TESTFN2, 'a') as f:
512 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
516 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
519 with open(TESTFN2, 'a') as f:
521 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
528 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
536 with zipfile.ZipFile(TESTFN2, mode="w") as zipfp:
539 with zipfile.ZipFile(TESTFN2, mode="r") as zipfp:
542 with zipfile.ZipFile(TESTFN2, mode="r") as zipfp:
549 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
561 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
723 unlink(TESTFN2)
746 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED,
750 with zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED) as zipfp:
756 with zipfile.ZipFile(TESTFN2, "w", allowZip64=True) as zipfp:
758 with zipfile.ZipFile(TESTFN2, "r", allowZip64=True) as zipfp:
761 with zipfile.ZipFile(TESTFN2, "a", allowZip64=True) as zipfp:
763 with zipfile.ZipFile(TESTFN2, "r", allowZip64=True) as zipfp:
786 unlink(TESTFN2)
790 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipf:
801 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipf:
933 os.mkdir(TESTFN2)
935 with open(os.path.join(TESTFN2, "mod1.py"), "w") as fp:
938 with open(os.path.join(TESTFN2, "mod2.py"), "w") as fp:
941 with open(os.path.join(TESTFN2, "mod2.txt"), "w") as fp:
945 zipfp.writepy(TESTFN2)
953 rmtree(TESTFN2)
956 os.mkdir(TESTFN2)
958 with open(os.path.join(TESTFN2, "mod1.py"), "w") as fp:
961 with open(os.path.join(TESTFN2, "mod2.py"), "w") as fp:
965 zipfp.writepy(TESTFN2, filterfunc=lambda fn:
973 rmtree(TESTFN2)
983 os.mkdir(TESTFN2)
985 with open(os.path.join(TESTFN2, "mod1.py"), "w") as fp:
991 zipfp.writepy(os.path.join(TESTFN2, "mod1.py"))
1002 rmtree(TESTFN2)
1005 os.mkdir(TESTFN2)
1007 with open(os.path.join(TESTFN2, "mod1.py"), "w") as fp:
1011 zipfp.writepy(pathlib.Path(TESTFN2) / "mod1.py")
1015 rmtree(TESTFN2)
1021 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
1028 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1046 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1061 unlink(TESTFN2)
1074 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1086 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1096 unlink(TESTFN2)
1169 with zipfile.ZipFile(TESTFN2, 'w', zipfile.ZIP_STORED) as zipfp:
1180 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
1188 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
1195 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
1202 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
1207 unlink(TESTFN2)
1213 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
1219 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1232 with zipfile.ZipFile(TESTFN2, 'w') as orig_zip:
1240 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
1246 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1253 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
1258 with zipfile.ZipFile(TESTFN2, "r") as zipfp2:
1294 unlink(TESTFN2)
1297 with zipfile.ZipFile(TESTFN2, "x", zipfile.ZIP_STORED) as zipfp:
1300 zipfile.ZipFile(TESTFN2, "x", zipfile.ZIP_STORED)
1301 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1621 with zipfile.ZipFile(TESTFN2, 'w', zipfile.ZIP_STORED) as zipf:
1639 with zipfile.ZipFile(TESTFN2, 'r') as zipf:
1685 unlink(TESTFN2)
1805 with open(TESTFN2, "wb") as fp:
1807 self.zip2 = zipfile.ZipFile(TESTFN2, "r")
1813 os.unlink(TESTFN2)
1854 unlink(TESTFN2)
2133 self.make_test_archive(TESTFN2)
2134 with zipfile.ZipFile(TESTFN2, mode="r") as zipf:
2143 with zipfile.ZipFile(TESTFN2, 'w', zipfile.ZIP_DEFLATED) as zipf:
2145 with zipfile.ZipFile(TESTFN2, 'a', zipfile.ZIP_DEFLATED) as zipf:
2152 with zipfile.ZipFile(TESTFN2) as zipf:
2156 unlink(TESTFN2)
2161 os.mkdir(TESTFN2)
2165 zipf.extractall(TESTFN2)
2166 self.assertTrue(os.path.isdir(os.path.join(TESTFN2, "a")))
2167 self.assertTrue(os.path.isdir(os.path.join(TESTFN2, "a", "b")))
2168 self.assertTrue(os.path.exists(os.path.join(TESTFN2, "a", "b", "c")))
2172 os.mkdir(os.path.join(TESTFN2, "a"))
2176 dirpath = os.path.join(TESTFN2, "x")
2195 target = os.path.join(TESTFN2, "target")
2202 os.mkdir(os.path.join(TESTFN2, "x"))
2212 target = os.path.join(TESTFN2, "target")
2219 rmtree(TESTFN2)
2312 out = self.zipfilecmd(opt, TESTFN2, *files)
2314 with zipfile.ZipFile(TESTFN2) as zf:
2319 unlink(TESTFN2)