diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2024-03-12 21:36:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 21:36:21 (GMT) |
commit | a2548077614f81f25a2c3465dabb7a0a3885c40c (patch) | |
tree | 07e48c359d022f298751bfd801b94c529226b20c /Misc | |
parent | bb66600558cb8d5dd9a56f562bd9531eb1e1685f (diff) | |
download | cpython-a2548077614f81f25a2c3465dabb7a0a3885c40c.zip cpython-a2548077614f81f25a2c3465dabb7a0a3885c40c.tar.gz cpython-a2548077614f81f25a2c3465dabb7a0a3885c40c.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2024-03-06-11-00-36.gh-issue-116307.Uij0t_.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2024-03-06-11-00-36.gh-issue-116307.Uij0t_.rst b/Misc/NEWS.d/next/Tests/2024-03-06-11-00-36.gh-issue-116307.Uij0t_.rst new file mode 100644 index 0000000..0bc4be9 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2024-03-06-11-00-36.gh-issue-116307.Uij0t_.rst @@ -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. |