mirror of
https://github.com/python/cpython.git
synced 2025-12-11 11:31:05 +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__':
|
if __name__ == '__main__':
|
||||||
__builtins__.__import__ = importlib.__import__
|
__builtins__.__import__ = importlib.__import__
|
||||||
|
sys.path_importer_cache.clear()
|
||||||
|
|
||||||
regrtest.main(quiet=True, verbose2=True)
|
regrtest.main(quiet=True, verbose2=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue