]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112712)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 4 Dec 2023 16:16:03 +0000 (17:16 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2023 16:16:03 +0000 (18:16 +0200)
commit8dbda1cf3eab8696dfbb95f0ca60af8db39d51c4
tree13e24de2146e4e550322ba5bd0ac056f6fa1e05d
parent76c9c9cedf30c92f52c33852efeefdb232db4ac0
[3.11] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112712)

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]