From: Brett Cannon Date: Sat, 14 Apr 2012 18:38:19 +0000 (-0400) Subject: Try to fix a sporadic test failure from what is probably a caching race condition. X-Git-Tag: v3.3.0a3~229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73def61edda551d8374bad949ceb287b4c783df1;p=python Try to fix a sporadic test failure from what is probably a caching race condition. --- 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)