diff options
author | Brett Cannon <brett@python.org> | 2012-04-14 18:38:19 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-14 18:38:19 (GMT) |
commit | 73def61edda551d8374bad949ceb287b4c783df1 (patch) | |
tree | bbb04147e64efab36b60f56d8339f9eff1b37d4c /Lib/test/test_import.py | |
parent | 740fce0e389027e76f990fc4f1a14fe6cc9cc6b0 (diff) | |
download | cpython-73def61edda551d8374bad949ceb287b4c783df1.zip cpython-73def61edda551d8374bad949ceb287b4c783df1.tar.gz cpython-73def61edda551d8374bad949ceb287b4c783df1.tar.bz2 |
Try to fix a sporadic test failure from what is probably a caching race condition.
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r-- | Lib/test/test_import.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 87409fc..8510eb8 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) |