Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9578757 commit 4f92a68Copy full SHA for 4f92a68
1 file changed
Lib/test/test_imp.py
@@ -325,6 +325,7 @@ def cleanup():
325
self.addCleanup(cleanup)
326
# Touch the __init__.py file.
327
support.create_empty_file('pep3147/__init__.py')
328
+ importlib.invalidate_caches()
329
expected___file__ = os.sep.join(('.', 'pep3147', '__init__.py'))
330
m = __import__('pep3147')
331
self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__))
0 commit comments