summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zipfile.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_zipfile.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_zipfile.py')
-rw-r--r--Lib/test/test_zipfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
index 7249b13..c15ea9f 100644
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -506,12 +506,12 @@ class StoredTestZip64InSmallFiles(AbstractTestZip64InSmallFiles,
compression = zipfile.ZIP_STORED
def large_file_exception_test(self, f, compression):
- with zipfile.ZipFile(f, "w", compression) as zipfp:
+ with zipfile.ZipFile(f, "w", compression, allowZip64=False) as zipfp:
self.assertRaises(zipfile.LargeZipFile,
zipfp.write, TESTFN, "another.name")
def large_file_exception_test2(self, f, compression):
- with zipfile.ZipFile(f, "w", compression) as zipfp:
+ with zipfile.ZipFile(f, "w", compression, allowZip64=False) as zipfp:
self.assertRaises(zipfile.LargeZipFile,
zipfp.writestr, "another.name", self.data)