Try to fix a sporadic test failure from what is probably a caching race condition.

This commit is contained in:
Brett Cannon 2012-04-14 14:38:19 -04:00
parent 740fce0e38
commit 73def61edd

View 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)