Lines Matching refs:zipfile
1 # Tests of the full ZIP64 functionality of zipfile
14 import zipfile, os, unittest
32 line_gen = ("Test of zipfile line %d." % i for i in range(1000000))
41 with zipfile.ZipFile(f, "w", compression) as zipfp:
59 with zipfile.ZipFile(f, "r", compression) as zipfp:
74 self.zipTest(f, zipfile.ZIP_STORED)
76 self.zipTest(TESTFN2, zipfile.ZIP_STORED)
83 self.zipTest(f, zipfile.ZIP_DEFLATED)
85 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED)
97 with zipfile.ZipFile(TESTFN, mode="w", allowZip64=True) as zipf:
104 with zipfile.ZipFile(TESTFN, mode="r") as zipf2:
111 with zipfile.ZipFile(TESTFN, mode="w", allowZip64=False) as zipf:
117 with self.assertRaises(zipfile.LargeZipFile):
121 with zipfile.ZipFile(TESTFN, mode="a", allowZip64=False) as zipf:
124 with self.assertRaises(zipfile.LargeZipFile):
128 with zipfile.ZipFile(TESTFN, mode="a", allowZip64=True) as zipf:
136 with zipfile.ZipFile(TESTFN, mode="r") as zipf2: