summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2011-08-27 13:22:05 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2011-08-27 13:22:05 (GMT)
commit0c97e5f36aa59e0221b9d279dfea83ff6f7936c0 (patch)
treec2f39ada0b0a104136522753aee9a4d8569b174e
parent217607ecde2f23f513aab3cdf7b99abf0fa6e415 (diff)
downloadcpython-0c97e5f36aa59e0221b9d279dfea83ff6f7936c0.zip
cpython-0c97e5f36aa59e0221b9d279dfea83ff6f7936c0.tar.gz
cpython-0c97e5f36aa59e0221b9d279dfea83ff6f7936c0.tar.bz2
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).
-rwxr-xr-xLib/test/regrtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index d32fc8d..10b515b 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -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")