commit | 4132368d0aeaba66195c75686dcb16d5e841bb7d | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Mon Apr 16 20:50:33 2012 -0400 |
committer | Brett Cannon <brett@python.org> | Mon Apr 16 20:50:33 2012 -0400 |
tree | dbc9478896f085bd8be7dd9eba33c88dd223d61e | |
parent | ceffda822f4caa26cd6dd5e0bf753c35e6bbcb80 [diff] |
Issue #14599: Fix an import caching race condition.
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 5053d49..71a1cd5 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py
@@ -346,6 +346,7 @@ pkg_name = "extension" pkg_file = pkg_name + "{}".format("_d.pyd" if debug else ".pyd") with open(pkg_file, "w"): pass + importlib.invalidate_caches() try: with self.assertRaises(ImportError) as err: import extension