From: Antoine Pitrou Date: Tue, 16 Aug 2011 18:02:26 +0000 (+0200) Subject: Use -n for tests under Windows X-Git-Tag: v3.3.0a1~1691^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f0a6ddb9001bc71748b8e47cdf07f72414799bf;p=thirdparty%2FPython%2Fcpython.git Use -n for tests under Windows --- diff --git a/Tools/scripts/run_tests.py b/Tools/scripts/run_tests.py index d8f5ac37b141..f750e192a0ea 100755 --- a/Tools/scripts/run_tests.py +++ b/Tools/scripts/run_tests.py @@ -32,6 +32,8 @@ def main(regrtest_args): '-r', # Randomize test order '-w', # Re-run failed tests in verbose mode ]) + if sys.platform == 'win32': + args.append('-n') # Silence alerts under Windows if not any(is_multiprocess_flag(arg) for arg in regrtest_args): args.extend(['-j', '0']) # Use all CPU cores if not any(is_resource_use_flag(arg) for arg in regrtest_args):