]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 21 Oct 2023 17:33:26 +0000 (20:33 +0300)
committerGitHub <noreply@github.com>
Sat, 21 Oct 2023 17:33:26 +0000 (17:33 +0000)
commit1ea93024d45144745d71f96f493f85e3b950ca97
tree6f983896506fbce9bfd903b74a373ac5e5127070
parent6a5ff9365413fcb7361d5f9edc02f8cfaa0baea9
[3.12] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919) (GH-111167)

Test case matching patterns specified by options --match, --ignore,
--matchfile and --ignorefile are now tested in the order of
specification, and the last match determines whether the test case be run
or ignored.
(cherry picked from commit 9a1fe09622cd0f1e24c2ba5335c94c5d70306fd0)
12 files changed:
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/findtests.py
Lib/test/libregrtest/main.py
Lib/test/libregrtest/run_workers.py
Lib/test/libregrtest/runtests.py
Lib/test/libregrtest/setup.py
Lib/test/libregrtest/utils.py
Lib/test/libregrtest/worker.py
Lib/test/support/__init__.py
Lib/test/test_regrtest.py
Lib/test/test_support.py
Misc/NEWS.d/next/Tests/2023-10-16-13-47-24.gh-issue-110918.aFgZK3.rst [new file with mode: 0644]