]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112711)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 4 Dec 2023 16:17:38 +0000 (17:17 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2023 16:17:38 +0000 (16:17 +0000)
commit8d21242bd1bcde660c81eb86b986afbc7d25a4ba
treeefe9e089a2d45ac904557ba541bdbc098c2f4ada
parentf49d07327ad784cd384e31a1cdf6d8fbbc4d750c
[3.12] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112711)

It breaks import machinery if the test module has submodules used in
other tests.
(cherry picked from commit e08b70fab1fbc45fa498020aac522ae1d5da6136)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]