summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-10 00:27:33 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-10 00:27:33 (GMT)
commit8dcc48ee3b6447cd63038e63ee11de36f6d85a68 (patch)
tree263c7533f46fd87624671678ebb5bffce4501753 /Lib
parent347dc95cd3b2d5d00a6d1a378084d87d32a47ab0 (diff)
downloadcpython-8dcc48ee3b6447cd63038e63ee11de36f6d85a68.zip
cpython-8dcc48ee3b6447cd63038e63ee11de36f6d85a68.tar.gz
cpython-8dcc48ee3b6447cd63038e63ee11de36f6d85a68.tar.bz2
Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_zipimport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_zipimport.py b/Lib/test/test_zipimport.py
index 8e5e12d..2bb7230 100644
--- a/Lib/test/test_zipimport.py
+++ b/Lib/test/test_zipimport.py
@@ -596,7 +596,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
z.writestr(zinfo, test_src)
z.close()
try:
- zipimport.zipimporter(filename)
+ zipimport.zipimporter(filename).load_module(TESTMOD)
finally:
os.remove(filename)