]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110918: Fix side effects of regrtest test_match_tests() (#116718)
authorVictor Stinner <vstinner@python.org>
Wed, 13 Mar 2024 13:20:33 +0000 (14:20 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 13:20:33 +0000 (14:20 +0100)
commit612f1ec988314bc0bc42a1b908751950331e2ede
tree817b9dece5a44564f302cbb466f98cee23bacb4c
parent33662d4e01d73cd4f29a25efc2ef09288129023f
gh-110918: Fix side effects of regrtest test_match_tests() (#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.
Lib/test/libregrtest/filter.py
Lib/test/test_regrtest.py