[Python-checkins] cpython: Improve debugging output for test failure
antoine.pitrou
python-checkins at python.org
Mon Feb 27 20:07:50 CET 2012
http://hg.python.org/cpython/rev/2f8f2ad0545f
changeset: 75322:2f8f2ad0545f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Mon Feb 27 20:04:05 2012 +0100
summary:
Improve debugging output for test failure
files:
Lib/test/test_imp.py | 2 +-
1 files changed, 1 insertions(+), 1 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
@@ -328,7 +328,7 @@
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')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list