]> granicus.if.org Git - python/commitdiff
Additional debug info in case of failure
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 22 Feb 2012 01:46:58 +0000 (02:46 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 22 Feb 2012 01:46:58 +0000 (02:46 +0100)
Lib/test/test_imp.py

index 90ccd7e20ed5d8a1fd5f3e1e2a5011e8e137781d..4d690e8624d35dac78c80c3c3e066f55bbf55643 100644 (file)
@@ -332,8 +332,7 @@ class PEP3147Tests(unittest.TestCase):
         support.unload('pep3147')
         m = __import__('pep3147')
         support.unload('pep3147')
-        sys.stdout.flush()
-        self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__))
+        self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__, sys.path))
 
 
 class NullImporterTests(unittest.TestCase):