From: Antoine Pitrou Date: Mon, 27 Feb 2012 19:04:05 +0000 (+0100) Subject: Improve debugging output for test failure X-Git-Tag: v3.3.0a1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ffd85c81820ad643a5c4524c08891c0f929f84d8;p=thirdparty%2FPython%2Fcpython.git Improve debugging output for test failure --- diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index d60e2fc91aa4..c06cff92c2b0 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -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')