]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127933: Add option to run regression tests in parallel (gh-128003)
authorSam Gross <colesbury@gmail.com>
Tue, 4 Feb 2025 22:44:59 +0000 (17:44 -0500)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2025 22:44:59 +0000 (17:44 -0500)
commite5f10a741408206e61cf793451cbd373bbe61594
treedf6041d6468726a34fb07667f8304200bbe07d41
parent285c1c4e9543299c8bf69ceb39a424782b8c632e
gh-127933: Add option to run regression tests in parallel (gh-128003)

This adds a new command line argument, `--parallel-threads` to the
regression test runner to allow it to run individual tests in multiple
threads in parallel in order to find multithreading bugs.

Some tests pass when run with `--parallel-threads`, but there's still
more work before the entire suite passes.
12 files changed:
Doc/library/test.rst
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/main.py
Lib/test/libregrtest/parallel_case.py [new file with mode: 0644]
Lib/test/libregrtest/runtests.py
Lib/test/libregrtest/single.py
Lib/test/support/__init__.py
Lib/test/test_class.py
Lib/test/test_descr.py
Lib/test/test_operator.py
Lib/test/test_tokenize.py
Misc/NEWS.d/next/Tests/2024-12-16-19-15-10.gh-issue-128003.GVBrfa.rst [new file with mode: 0644]