[Python-checkins] cpython: Try to debug sporadic test failures
antoine.pitrou
python-checkins at python.org
Wed Feb 22 01:15:02 CET 2012
http://hg.python.org/cpython/rev/f5119adb0bd4
changeset: 75162:f5119adb0bd4
parent: 75160:aafa41fb7061
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Feb 22 01:11:31 2012 +0100
summary:
Try to debug sporadic test failures
files:
Lib/test/test_imp.py | 7 +++++--
1 files changed, 5 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
@@ -325,12 +325,15 @@
self.addCleanup(cleanup)
# Touch the __init__.py file.
support.create_empty_file('pep3147/__init__.py')
+ expected___file__ = os.sep.join(('.', 'pep3147', '__init__.py'))
m = __import__('pep3147')
+ self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__))
# Ensure we load the pyc file.
support.forget('pep3147')
m = __import__('pep3147')
- self.assertEqual(m.__file__,
- os.sep.join(('.', 'pep3147', '__init__.py')))
+ support.forget('pep3147')
+ sys.stdout.flush()
+ self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__))
class NullImporterTests(unittest.TestCase):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list