mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun)
This commit is contained in:
parent
347dc95cd3
commit
8dcc48ee3b
3 changed files with 8 additions and 11 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue