]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718) (#116726)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Mar 2024 14:16:23 +0000 (15:16 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 14:16:23 +0000 (14:16 +0000)
commit283dda83ec37e3d5466ef4561a38172374307740
tree61d349fc121c8f9f4de8a5b74d799d36c956f194
parent89b5c5e321d84dfe5716b5b7eaa5dbda497301be
[3.12] gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718) (#116726)

gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
(cherry picked from commit 612f1ec988314bc0bc42a1b908751950331e2ede)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/libregrtest/filter.py
Lib/test/test_regrtest.py