Have importlib.test.regrtest clear sys.path_importer_cache to make

sure finders from importlib are used instead of _frozen_importlib.
This commit is contained in:
Brett Cannon 2012-04-20 12:51:44 -04:00
parent 63c39fe38e
commit 91900eaf96
1 changed files with 1 additions and 0 deletions

View File

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