SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
cde47e222e8899cf6f9ec1db7d660c03cb7e7e04
Parent: 1117e7d
Committed by GitHub <noreply@github.com> on 3/13/2024, 2:35:59 PM