mirror of https://github.com/python/cpython
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:
parent
63c39fe38e
commit
91900eaf96
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue