[Python-checkins] cpython: Try to fix a sporadic test failure from what is probably a caching race

brett.cannon python-checkins at python.org
Sat Apr 14 20:38:23 CEST 2012


http://hg.python.org/cpython/rev/b85818a836e3
changeset: 76305:b85818a836e3
user: Brett Cannon <brett at python.org>
date: Sat Apr 14 14:38:19 2012 -0400
summary:
 Try to fix a sporadic test failure from what is probably a caching race condition.
files:
 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
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -172,6 +172,7 @@
 
 # Need to be able to load from current dir.
 sys.path.append('')
+ importlib.invalidate_caches()
 
 try:
 make_legacy_pyc(filename)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /