File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ zipimport
119119---------
120120
121121* Remove deprecated :meth: `!zipimport.zipimporter.load_module `.
122- They had previously raised a :exc: `DeprecationWarning ` since Python 3.10.
123122 Use :meth: `zipimport.zipimporter.exec_module ` instead.
124123 (Contributed by Jiahao Li in :gh: `133656 `.)
125124
Original file line number Diff line number Diff line change @@ -552,6 +552,8 @@ def testZipImporterMethods(self):
552552 "spam" + pyc_ext : test_pyc }
553553 self .makeZip (files , file_comment = b"spam" )
554554
555+ sys .path .insert (0 , TEMP_ZIP )
556+
555557 zi = zipimport .zipimporter (TEMP_ZIP )
556558 self .assertEqual (zi .archive , TEMP_ZIP )
557559 self .assertTrue (zi .is_package (TESTPACK ))
@@ -664,6 +666,8 @@ def testZipImporterMethodsInSubDirectory(self):
664666 packdir2 + TESTMOD + pyc_ext : test_pyc }
665667 self .makeZip (files , file_comment = b"eggs" )
666668
669+ sys .path .insert (0 , TEMP_ZIP + os .sep + TESTPACK )
670+
667671 zi = zipimport .zipimporter (TEMP_ZIP + os .sep + packdir )
668672 self .assertEqual (zi .archive , TEMP_ZIP )
669673 self .assertEqual (zi .prefix , packdir )
You can’t perform that action at this time.
0 commit comments