mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue