]> granicus.if.org Git - python/commitdiff
regrtest doesn't ignore -j1 anymore
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 20 May 2016 11:15:55 +0000 (13:15 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 20 May 2016 11:15:55 +0000 (13:15 +0200)
* 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.

Lib/test/libregrtest/cmdline.py
Misc/NEWS
Tools/buildbot/test.bat

index c7e990db1f6672377016da7ace6b27cc939fe5d5..de09a0122abb59d8663cc2dc6c9f3b89a50dcbc4 100644 (file)
@@ -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:
index 5dccc5c5ba7aef00b0c4fa60f6bd48db800e0834..628426ba56b41d827397e059695ea2f2779a5412 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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?
 ===================================
index c01400ce1fbd8d038a2c9f138aa94492266cab81..5972d5e0880817a5e04abec3c90ddf6c32495a05 100644 (file)
@@ -4,7 +4,7 @@ setlocal
 \r
 set here=%~dp0\r
 set rt_opts=-q -d\r
-set regrtest_args=\r
+set regrtest_args=-j1\r
 \r
 :CheckOpts\r
 if "%1"=="-x64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts\r