summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-02-26 17:09:50 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-02-26 17:09:50 (GMT)
commit4f92a68a813c8a4090fd175037c494b498e62587 (patch)
tree583f24bbbf8cd337b5937362e2469f0da01983a9 /Lib
parent9578757ec4892cfdad29a748f88344f65aa2efbb (diff)
downloadcpython-4f92a68a813c8a4090fd175037c494b498e62587.zip
cpython-4f92a68a813c8a4090fd175037c494b498e62587.tar.gz
cpython-4f92a68a813c8a4090fd175037c494b498e62587.tar.bz2
Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_imp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
index 4d690e8..d60e2fc 100644
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -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__))