summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-05-20 11:15:55 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-05-20 11:15:55 (GMT)
commit6d81a2136d61cb787e7bd7fc26a7ba2a363d8c40 (patch)
treeff515387774179c272f38d2f80cfa6c5cf5ffdbd /Lib/test/libregrtest
parent2292edf574f2fcf630c81f0c3348692f18dc4e42 (diff)
downloadcpython-6d81a2136d61cb787e7bd7fc26a7ba2a363d8c40.zip
cpython-6d81a2136d61cb787e7bd7fc26a7ba2a363d8c40.tar.gz
cpython-6d81a2136d61cb787e7bd7fc26a7ba2a363d8c40.tar.bz2
regrtest doesn't ignore -j1 anymore
* regrtest now uses subprocesses when the -j1 command line option is used: each test file runs in a fresh child process. Before, the -j1 option was ignored. * Tools/buildbot/test.bat script now uses -j1 by default to run each test file in fresh child process.
Diffstat (limited to 'Lib/test/libregrtest')
-rw-r--r--Lib/test/libregrtest/cmdline.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py
index c7e990d..de09a01 100644
--- a/Lib/test/libregrtest/cmdline.py
+++ b/Lib/test/libregrtest/cmdline.py
@@ -318,8 +318,6 @@ def _parse_args(args, **kwargs):
if ns.use_mp <= 0:
# Use all cores + extras for tests that like to sleep
ns.use_mp = 2 + (os.cpu_count() or 1)
- if ns.use_mp == 1:
- ns.use_mp = None
if ns.use:
for a in ns.use:
for r in a: