]> granicus.if.org Git - python/commitdiff
More debug output
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 27 Feb 2012 21:01:25 +0000 (22:01 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 27 Feb 2012 21:01:25 +0000 (22:01 +0100)
Lib/test/test_imp.py

index c06cff92c2b05c397ffaea980095b85abc68a6b9..cd34a46a18df5c32def6eb862e172cfc291885ba 100644 (file)
@@ -328,12 +328,12 @@ class PEP3147Tests(unittest.TestCase):
         importlib.invalidate_caches()
         expected___file__ = os.sep.join(('.', 'pep3147', '__init__.py'))
         m = __import__('pep3147')
-        self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path))
+        self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path, sys.path_importer_cache))
         # Ensure we load the pyc file.
         support.unload('pep3147')
         m = __import__('pep3147')
         support.unload('pep3147')
-        self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path))
+        self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path, sys.path_importer_cache))
 
 
 class NullImporterTests(unittest.TestCase):