summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/regrtest.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-20 16:51:44 (GMT)
committerBrett Cannon <brett@python.org>2012-04-20 16:51:44 (GMT)
commit91900eaf96a55e7be0f6c445269c1a3a2a1e1b39 (patch)
treee674d853c0f058c73a3a55a183661a52ef7a77d4 /Lib/importlib/test/regrtest.py
parent63c39fe38e54c986a70dd9f97acf444837d1d244 (diff)
downloadcpython-91900eaf96a55e7be0f6c445269c1a3a2a1e1b39.zip
cpython-91900eaf96a55e7be0f6c445269c1a3a2a1e1b39.tar.gz
cpython-91900eaf96a55e7be0f6c445269c1a3a2a1e1b39.tar.bz2
Have importlib.test.regrtest clear sys.path_importer_cache to make
sure finders from importlib are used instead of _frozen_importlib.
Diffstat (limited to 'Lib/importlib/test/regrtest.py')
-rw-r--r--Lib/importlib/test/regrtest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/importlib/test/regrtest.py b/Lib/importlib/test/regrtest.py
index 9cc9ee7..a5be11f 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)