mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah.
This commit is contained in:
parent
9578757ec4
commit
4f92a68a81
1 changed files with 1 additions and 0 deletions
|
|
@ -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__))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue