]> granicus.if.org Git - python/commitdiff
Improve debugging output for test failure
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 27 Feb 2012 19:04:05 +0000 (20:04 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 27 Feb 2012 19:04:05 +0000 (20:04 +0100)
Lib/test/test_imp.py

index d60e2fc91aa4c5d27a7d64a40f4461d25cf97e0b..c06cff92c2b05c397ffaea980095b85abc68a6b9 100644 (file)
@@ -328,7 +328,7 @@ 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__))
+        self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path))
         # Ensure we load the pyc file.
         support.unload('pep3147')
         m = __import__('pep3147')