]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108927: Fix removing testing modules from sys.modules (GH-108952)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 4 Dec 2023 15:43:27 +0000 (17:43 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2023 15:43:27 +0000 (15:43 +0000)
commite08b70fab1fbc45fa498020aac522ae1d5da6136
tree96f8b2602f3bc5a41874f89ede1ceb1ae60a979b
parentc718ab92a584fa658b6a626a744f5a71a048b47c
gh-108927: Fix removing testing modules from sys.modules (GH-108952)

It breaks import machinery if the test module has submodules used in
other tests.
Lib/test/libregrtest/main.py
Lib/test/libregrtest/single.py
Lib/test/regrtestdata/import_from_tests/test_regrtest_a.py [new file with mode: 0644]
Lib/test/regrtestdata/import_from_tests/test_regrtest_b/__init__.py [new file with mode: 0644]
Lib/test/regrtestdata/import_from_tests/test_regrtest_b/util.py [new file with mode: 0644]
Lib/test/regrtestdata/import_from_tests/test_regrtest_c.py [new file with mode: 0644]
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2023-09-05-20-46-35.gh-issue-108927.TpwWav.rst [new file with mode: 0644]