]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-116307: Proper fix for 'mod' leaking across importlib tests… (#116694)
authorJason R. Coombs <jaraco@jaraco.com>
Wed, 13 Mar 2024 00:35:00 +0000 (20:35 -0400)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 00:35:00 +0000 (00:35 +0000)
commit21a259eba5a1d13cf2c6b943b1f753f85d25ec58
tree6ba4b47656c3f2fe64dd7172b674a0094d58666d
parenta01621aeb4a9b4e9307aba1ff7a772af1de931f8
[3.11] gh-116307: Proper fix for 'mod' leaking across importlib tests… (#116694)

[3.11] gh-116307: Proper fix for 'mod' leaking across importlib tests (GH-116680)
(cherry picked from commit a2548077614f81f25a2c3465dabb7a0a3885c40c)

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.
Lib/test/support/import_helper.py
Misc/NEWS.d/next/Tests/2024-03-06-11-00-36.gh-issue-116307.Uij0t_.rst [new file with mode: 0644]