]> granicus.if.org Git - python/commitdiff
Try to fix a sporadic test failure from what is probably a caching race condition.
authorBrett Cannon <brett@python.org>
Sat, 14 Apr 2012 18:38:19 +0000 (14:38 -0400)
committerBrett Cannon <brett@python.org>
Sat, 14 Apr 2012 18:38:19 +0000 (14:38 -0400)
Lib/test/test_import.py

index 87409fc9f67aee5bdad1c9ec1ade913116b60331..8510eb87564089d73901814bdb73f471c2d4a3c6 100644 (file)
@@ -172,6 +172,7 @@ class ImportTests(unittest.TestCase):
 
         # Need to be able to load from current dir.
         sys.path.append('')
+        importlib.invalidate_caches()
 
         try:
             make_legacy_pyc(filename)