Home | History | Annotate | Download | only in test

Lines Matching refs:TESTFN2

31 TESTFN2 = TESTFN + "2"
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()):
271 for f in (TESTFN2, TemporaryFile(), StringIO()):
276 for f in (TESTFN2, TemporaryFile(), StringIO()):
281 for f in (TESTFN2, TemporaryFile(), StringIO()):
287 for f in (TESTFN2, TemporaryFile(), StringIO()):
292 for f in (TESTFN2, TemporaryFile(), StringIO()):
297 for f in (TESTFN2, TemporaryFile(), StringIO()):
302 for f in (TESTFN2, TemporaryFile(), StringIO()):
309 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_DEFLATED) as zipfp:
313 with zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_DEFLATED) as zipfp:
319 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
322 with zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED) as zipfp:
327 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
330 with zipfile.ZipFile(TESTFN2, "a", zipfile.ZIP_STORED) as zipfp:
339 with open(TESTFN2, 'wb') as f:
342 with zipfile.ZipFile(TESTFN2, "a", zipfile.ZIP_STORED) as zipfp:
345 with open(TESTFN2, 'rb') as f:
350 with open(TESTFN2, 'rb') as f:
363 with open(TESTFN2, 'wb') as f:
367 with zipfile.ZipFile(TESTFN2) as zipfp:
377 with open(TESTFN2, 'wb') as f:
381 with zipfile.ZipFile(TESTFN2, 'a') as zipfp:
385 with open(TESTFN2, 'rb') as f:
394 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
396 with open(TESTFN2, 'a') as f:
398 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
402 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
405 with open(TESTFN2, 'a') as f:
407 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
414 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
423 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
434 with zipfile.ZipFile(TESTFN2, mode="w") as zipfp:
437 with zipfile.ZipFile(TESTFN2, mode="r") as zipfp:
441 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
445 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
464 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
468 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
489 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
493 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
547 with zipfile.ZipFile(TESTFN2, 'w', zipfile.ZIP_STORED) as zipfp:
558 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
565 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
572 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
579 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
584 os.remove(TESTFN2)
587 zipfp = zipfile.ZipFile(TESTFN2, "w")
610 for f in (TESTFN2, TemporaryFile(), StringIO()):
615 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
621 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
628 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
633 with zipfile.ZipFile(TESTFN2, "r") as zipfp2:
641 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
646 unlink(TESTFN2)
678 for f in (TESTFN2, TemporaryFile(), StringIO()):
745 for f in (TESTFN2, TemporaryFile(), StringIO()):
750 for f in (TESTFN2, TemporaryFile(), StringIO()):
754 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED,
758 with zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED) as zipfp:
819 unlink(TESTFN2)
877 os.mkdir(TESTFN2)
879 with open(os.path.join(TESTFN2, "mod1.py"), "w") as fp:
882 with open(os.path.join(TESTFN2, "mod2.py"), "w") as fp:
885 with open(os.path.join(TESTFN2, "mod2.txt"), "w") as fp:
889 zipfp.writepy(TESTFN2)
897 rmtree(TESTFN2)
1293 unlink(TESTFN2)
1326 with open(TESTFN2, "wb") as fp:
1328 self.zip2 = zipfile.ZipFile(TESTFN2, "r")
1334 os.unlink(TESTFN2)
1368 unlink(TESTFN2)
1387 for f in (TESTFN2, TemporaryFile(), StringIO()):
1392 for f in (TESTFN2, TemporaryFile(), io.BytesIO()):
1425 for f in (TESTFN2, TemporaryFile(), StringIO()):
1430 for f in (TESTFN2, TemporaryFile(), io.BytesIO()):
1451 for f in (TESTFN2, TemporaryFile(), StringIO()):
1456 for f in (TESTFN2, TemporaryFile(), io.BytesIO()):
1476 self.make_test_archive(TESTFN2)
1477 with zipfile.ZipFile(TESTFN2, mode="r") as zipf:
1489 self.make_test_archive(TESTFN2)
1490 with zipfile.ZipFile(TESTFN2, mode="r") as zipf:
1502 self.make_test_archive(TESTFN2)
1503 with zipfile.ZipFile(TESTFN2, mode="r") as zipf:
1514 self.make_test_archive(TESTFN2)
1517 with zipfile.ZipFile(TESTFN2, 'r') as zipf:
1533 with zipfile.ZipFile(TESTFN2, 'w', zipfile.ZIP_DEFLATED) as zipf:
1539 with zipfile.ZipFile(TESTFN2, 'r') as zipf:
1546 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_DEFLATED) as zipf:
1551 with zipfile.ZipFile(TESTFN2, 'r') as zipf:
1560 self.make_test_archive(TESTFN2)
1561 with zipfile.ZipFile(TESTFN2, mode="r") as zipf:
1570 unlink(TESTFN2)
1575 os.mkdir(TESTFN2)
1579 zipf.extractall(TESTFN2)
1580 self.assertTrue(os.path.isdir(os.path.join(TESTFN2, "a")))
1581 self.assertTrue(os.path.isdir(os.path.join(TESTFN2, "a", "b")))
1582 self.assertTrue(os.path.exists(os.path.join(TESTFN2, "a", "b", "c")))
1586 os.mkdir(os.path.join(TESTFN2, "a"))
1590 dirpath = os.path.join(TESTFN2, "x")
1609 target = os.path.join(TESTFN2, "target")
1616 os.mkdir(os.path.join(TESTFN2, "x"))
1626 target = os.path.join(TESTFN2, "target")
1633 rmtree(TESTFN2)
1722 for f in (TESTFN2, TemporaryFile(), StringIO()):
1727 for f in (TESTFN2, TemporaryFile(), StringIO()):
1731 for f in (TESTFN2, TemporaryFile(), StringIO()):
1735 for f in (TESTFN2, TemporaryFile(), StringIO()):
1739 for f in (TESTFN2, TemporaryFile(), StringIO()):
1744 for f in (TESTFN2, TemporaryFile(), StringIO()):
1750 for f in (TESTFN2, TemporaryFile(), StringIO()):
1755 for f in (TESTFN2, TemporaryFile(), StringIO()):
1760 for f in (TESTFN2, TemporaryFile(), StringIO()):
1765 for f in (TESTFN2, TemporaryFile(), StringIO()):
1772 unlink(TESTFN2)
1814 out = self.zipfilecmd('-c', TESTFN2, *files)
1816 with zipfile.ZipFile(TESTFN2) as zf:
1821 unlink(TESTFN2)