summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zipfile64.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-23 13:55:38 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-23 13:55:38 (GMT)
commit235c5e0dd6fe6408cf6058233602638ae3c9b8b2 (patch)
tree12b0c4b62eb7cb1e102f3c9fe890ffc8865ffd96 /Lib/test/test_zipfile64.py
parent8b78493d4f9eca2d8a90abdab7e905e9556eba57 (diff)
downloadcpython-235c5e0dd6fe6408cf6058233602638ae3c9b8b2.zip
cpython-235c5e0dd6fe6408cf6058233602638ae3c9b8b2.tar.gz
cpython-235c5e0dd6fe6408cf6058233602638ae3c9b8b2.tar.bz2
Issue #17201: ZIP64 extensions now are enabled by default.
Patch by William Mallard.
Diffstat (limited to 'Lib/test/test_zipfile64.py')
-rw-r--r--Lib/test/test_zipfile64.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_zipfile64.py b/Lib/test/test_zipfile64.py
index a8fb7ab..498d464 100644
--- a/Lib/test/test_zipfile64.py
+++ b/Lib/test/test_zipfile64.py
@@ -38,7 +38,7 @@ class TestsWithSourceFile(unittest.TestCase):
def zipTest(self, f, compression):
# Create the ZIP archive.
- zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True)
+ zipfp = zipfile.ZipFile(f, "w", compression)
# It will contain enough copies of self.data to reach about 6GB of
# raw data to store.
@@ -92,7 +92,7 @@ class OtherTests(unittest.TestCase):
def testMoreThan64kFiles(self):
# This test checks that more than 64k files can be added to an archive,
# and that the resulting archive can be read properly by ZipFile
- zipf = zipfile.ZipFile(TESTFN, mode="w")
+ zipf = zipfile.ZipFile(TESTFN, mode="w", allowZip64=False)
zipf.debug = 100
numfiles = (1 << 16) * 3//2
for i in range(numfiles):