Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun)

This commit is contained in:
Steve Dower 2016-09-09 17:33:37 -07:00
commit ff70fc2206
3 changed files with 8 additions and 11 deletions

View file

@ -615,7 +615,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)