Skip to content

Commit ca1bef5

Browse files
test: use zipimport instead of codecs
1 parent bafaf58 commit ca1bef5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_import/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def test_import_null_byte_in_name_raises_ModuleNotFoundError(self):
369369
# lead to duplicates in sys.modules
370370
before = set(sys.modules.keys())
371371
with self.assertRaises(ModuleNotFoundError):
372-
__import__('codecs\x00junk')
372+
__import__('zipimport\x00junk')
373373

374374
self.assertEqual(set(sys.modules.keys()), before)
375375

0 commit comments

Comments
 (0)