Commit 4f92a68a authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah.

parent 9578757e
......@@ -325,6 +325,7 @@ class PEP3147Tests(unittest.TestCase):
self.addCleanup(cleanup)
# Touch the __init__.py file.
support.create_empty_file('pep3147/__init__.py')
importlib.invalidate_caches()
expected___file__ = os.sep.join(('.', 'pep3147', '__init__.py'))
m = __import__('pep3147')
self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__))
......
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