summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-16 15:43:45 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-16 15:43:45 (GMT)
commit0e6b7b5cd2f1bae9bdceac4d2bedfd6674250ac1 (patch)
tree3463916c335f0c25be4fb437a0d395f0ab112bf2 /Lib/test
parent0cad7eca45a3bd081fa0c2dd18e05c8202661cf9 (diff)
downloadcpython-0e6b7b5cd2f1bae9bdceac4d2bedfd6674250ac1.zip
cpython-0e6b7b5cd2f1bae9bdceac4d2bedfd6674250ac1.tar.gz
cpython-0e6b7b5cd2f1bae9bdceac4d2bedfd6674250ac1.tar.bz2
Issue #8745: Small speed up zipimport on Windows. Patch by Catalin Iacob.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_zipimport.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_zipimport.py b/Lib/test/test_zipimport.py
index 9c3f6d4..a60d3e0 100644
--- a/Lib/test/test_zipimport.py
+++ b/Lib/test/test_zipimport.py
@@ -196,6 +196,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
for name, (mtime, data) in files.items():
zinfo = ZipInfo(name, time.localtime(mtime))
zinfo.compress_type = self.compression
+ zinfo.comment = b"spam"
z.writestr(zinfo, data)
z.close()
@@ -245,6 +246,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
for name, (mtime, data) in files.items():
zinfo = ZipInfo(name, time.localtime(mtime))
zinfo.compress_type = self.compression
+ zinfo.comment = b"eggs"
z.writestr(zinfo, data)
z.close()