mirror of
https://github.com/python/cpython.git
synced 2025-10-29 09:29:26 +00:00
gh-116307: Proper fix for 'mod' leaking across importlib tests (#116680)
gh-116307: Create a new import helper 'isolated modules' and use that instead of 'Clean Import' to ensure that tests from importlib_resources don't leave modules in sys.modules.
This commit is contained in:
parent
bb66600558
commit
a254807761
3 changed files with 16 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
|||
Added import helper ``isolated_modules`` as ``CleanImport`` does not remove
|
||||
modules imported during the context. Use it in importlib.resources tests to
|
||||
avoid leaving ``mod`` around to impede importlib.metadata tests.
|
||||
Loading…
Add table
Add a link
Reference in a new issue