Kaydet (Commit) abe72d7e authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Try to debug sporadic test failures

üst b43fde98
...@@ -325,12 +325,15 @@ class PEP3147Tests(unittest.TestCase): ...@@ -325,12 +325,15 @@ class PEP3147Tests(unittest.TestCase):
self.addCleanup(cleanup) self.addCleanup(cleanup)
# Touch the __init__.py file. # Touch the __init__.py file.
support.create_empty_file('pep3147/__init__.py') support.create_empty_file('pep3147/__init__.py')
expected___file__ = os.sep.join(('.', 'pep3147', '__init__.py'))
m = __import__('pep3147') m = __import__('pep3147')
self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__))
# Ensure we load the pyc file. # Ensure we load the pyc file.
support.forget('pep3147') support.forget('pep3147')
m = __import__('pep3147') m = __import__('pep3147')
self.assertEqual(m.__file__, support.forget('pep3147')
os.sep.join(('.', 'pep3147', '__init__.py'))) sys.stdout.flush()
self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__))
class NullImporterTests(unittest.TestCase): class NullImporterTests(unittest.TestCase):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment