summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-02-22 00:11:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-02-22 00:11:31 (GMT)
commitabe72d7eb3c5288c35214073e2cb25a61f2174ea (patch)
tree24588597fa580aaea83337e394bd9a68e1de45d0 /Lib/test
parentb43fde98b49869307a098c86cf8878ecb2fd72b9 (diff)
downloadcpython-abe72d7eb3c5288c35214073e2cb25a61f2174ea.zip
cpython-abe72d7eb3c5288c35214073e2cb25a61f2174ea.tar.gz
cpython-abe72d7eb3c5288c35214073e2cb25a61f2174ea.tar.bz2
Try to debug sporadic test failures
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_imp.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
index 3041218..739f780 100644
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -325,12 +325,15 @@ class PEP3147Tests(unittest.TestCase):
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):