From: Brett Cannon Date: Fri, 20 Apr 2012 16:51:44 +0000 (-0400) Subject: Have importlib.test.regrtest clear sys.path_importer_cache to make X-Git-Tag: v3.3.0a3~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91900eaf96a55e7be0f6c445269c1a3a2a1e1b39;p=thirdparty%2FPython%2Fcpython.git Have importlib.test.regrtest clear sys.path_importer_cache to make sure finders from importlib are used instead of _frozen_importlib. --- diff --git a/Lib/importlib/test/regrtest.py b/Lib/importlib/test/regrtest.py index 9cc9ee7dd672..a5be11fd4ee5 100644 --- a/Lib/importlib/test/regrtest.py +++ b/Lib/importlib/test/regrtest.py @@ -12,5 +12,6 @@ from test import regrtest if __name__ == '__main__': __builtins__.__import__ = importlib.__import__ + sys.path_importer_cache.clear() regrtest.main(quiet=True, verbose2=True)