8000 gh-119727: Run tests in parallel by default · python/cpython@5517f14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5517f14

Browse files
committed
gh-119727: Run tests in parallel by default
The Python test runner (regrtest) now runs tests in parallel by default. Use the --single-process option to run tests sequentially in a single process.
1 parent 6ae254a commit 5517f14

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/test/libregrtest/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __init__(self, **kwargs) -> None:
157157
self.verbose3 = False
158158
self.print_slow = False
159159
self.random_seed = None
160-
self.use_mp = None
160+
self.use_mp = 0
161161
self.forever = False
162162
self.header = False
163163
self.failfast = False
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The Python test runner (regrtest) now runs tests in parallel by default. Use
2+
the ``--single-process`` option to run tests sequentially in a single process.
3+
Patch by Victor Stinner.

0 commit comments

Comments
 (0)
0