From 73def61edda551d8374bad949ceb287b4c783df1 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 14 Apr 2012 14:38:19 -0400 Subject: [PATCH] Try to fix a sporadic test failure from what is probably a caching race condition. --- Lib/test/test_import.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 87409fc9f6..8510eb8756 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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) -- 2.40.0