Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a4d7dd

Browse files
committed
More debug output
1 parent ffd85c8 commit 9a4d7dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_imp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ def cleanup():
328328
importlib.invalidate_caches()
329329
expected___file__ = os.sep.join(('.', 'pep3147', '__init__.py'))
330330
m = __import__('pep3147')
331-
self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path))
331+
self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path, sys.path_importer_cache))
332332
# Ensure we load the pyc file.
333333
support.unload('pep3147')
334334
m = __import__('pep3147')
335335
support.unload('pep3147')
336-
self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path))
336+
self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path, sys.path_importer_cache))
337337

338338

339339
class NullImporterTests(unittest.TestCase):

0 commit comments

Comments
 (0)