]> granicus.if.org Git - python/commitdiff
Make regrtest complain when -M and -j are used together.
authorNadeem Vawda <nadeem.vawda@gmail.com>
Sat, 27 Aug 2011 13:22:05 +0000 (15:22 +0200)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sat, 27 Aug 2011 13:22:05 +0000 (15:22 +0200)
-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).

Lib/test/regrtest.py

index d32fc8dd0aa8fabceb4f5fd8f39a888f84671064..10b515b5ab2d0bc53f40f7e583acef8de24e3806 100755 (executable)
@@ -412,6 +412,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
         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")