[Python-checkins] cpython (3.2): Make regrtest complain when -M and -j are used together.

georg.brandl python-checkins at python.org
Sun Sep 4 08:42:27 CEST 2011


http://hg.python.org/cpython/rev/34bafe09dc2b
changeset:   72240:34bafe09dc2b
branch:      3.2
user:        Nadeem Vawda <nadeem.vawda at gmail.com>
date:        Sat Aug 27 15:22:05 2011 +0200
summary:
  Make regrtest complain when -M and -j are used together.

-j doesn't pass the memlimit on to child processes, so this doesn't work at
present, and even if it did, running multiple bigmem tests at once would
usually not be desirable (since you generally want to devote as much of the
available RAM as possible to each test).

files:
  Lib/test/regrtest.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -412,6 +412,8 @@
         usage("-T and -j don't go together!")
     if use_mp and findleaks:
         usage("-l and -j don't go together!")
+    if use_mp and support.max_memuse:
+        usage("-M and -j don't go together!")
     if failfast and not (verbose or verbose3):
         usage("-G/--failfast needs either -v or -W")
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list