]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 21 Oct 2023 17:30:19 +0000 (20:30 +0300)
committerGitHub <noreply@github.com>
Sat, 21 Oct 2023 17:30:19 +0000 (17:30 +0000)
commit4222dd93af710ba9f427d4f5d95a9241298ff0db
treea79f8c2b9d912d8fe297ecdc91ba54c95c43cdd5
parent17b8e35b65315efbb859100c9d0393eed338a815
[3.11] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919) (GH-111168)

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]