]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116307: Proper fix for 'mod' leaking across importlib tests (#116680)
authorJason R. Coombs <jaraco@jaraco.com>
Tue, 12 Mar 2024 21:36:21 +0000 (17:36 -0400)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2024 21:36:21 +0000 (21:36 +0000)
commita2548077614f81f25a2c3465dabb7a0a3885c40c
tree07e48c359d022f298751bfd801b94c529226b20c
parentbb66600558cb8d5dd9a56f562bd9531eb1e1685f
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.
Lib/test/support/import_helper.py
Lib/test/test_importlib/resources/test_files.py
Misc/NEWS.d/next/Tests/2024-03-06-11-00-36.gh-issue-116307.Uij0t_.rst [new file with mode: 0644]