]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718) (#116727)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Mar 2024 14:35:59 +0000 (15:35 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 14:35:59 +0000 (14:35 +0000)
commitcde47e222e8899cf6f9ec1db7d660c03cb7e7e04
treedb5eef2c966177a27f3f564397f9aececbc8bee8
parent1117e7dd1b5264e20ff5f4474fd3f5c72e675aac
[3.11] gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718) (#116727)

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