[Python-checkins] cpython: Additional debug info in case of failure

antoine.pitrou python-checkins at python.org
Wed Feb 22 02:50:25 CET 2012


http://hg.python.org/cpython/rev/e4ef1a398e33
changeset:   75164:e4ef1a398e33
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed Feb 22 02:46:58 2012 +0100
summary:
  Additional debug info in case of failure

files:
  Lib/test/test_imp.py |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -332,8 +332,7 @@
         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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list