diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-05-20 11:15:55 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-05-20 11:15:55 (GMT) |
commit | 6d81a2136d61cb787e7bd7fc26a7ba2a363d8c40 (patch) | |
tree | ff515387774179c272f38d2f80cfa6c5cf5ffdbd | |
parent | 2292edf574f2fcf630c81f0c3348692f18dc4e42 (diff) | |
download | cpython-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.
-rw-r--r-- | Lib/test/libregrtest/cmdline.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 10 | ||||
-rw-r--r-- | Tools/buildbot/test.bat | 2 |
3 files changed, 11 insertions, 3 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: @@ -22,6 +22,16 @@ Library - Issue #27056: Optimize pickle.load() and pickle.loads(), up to 10% faster to deserialize a lot of small objects. +Tests +----- + +- Issue #25285: 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. + +- Issue #25285: Tools/buildbot/test.bat script now uses -j1 by default to run + each test file in fresh child process. + What's New in Python 3.6.0 alpha 1? =================================== diff --git a/Tools/buildbot/test.bat b/Tools/buildbot/test.bat index c01400c..5972d5e 100644 --- a/Tools/buildbot/test.bat +++ b/Tools/buildbot/test.bat @@ -4,7 +4,7 @@ setlocal set here=%~dp0
set rt_opts=-q -d
-set regrtest_args=
+set regrtest_args=-j1
:CheckOpts
if "%1"=="-x64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
|