Kaydet (Commit) d39dbf4c authored tarafından Antoine Pitrou's avatar Antoine Pitrou Kaydeden (comit) GitHub

Simplify run_tests.py (#3482)

üst 8b57d736
......@@ -10,10 +10,6 @@ simply passing a -u option to this script.
import os
import sys
import test.support
try:
import threading
except ImportError:
threading = None
def is_multiprocess_flag(arg):
......@@ -43,7 +39,7 @@ def main(regrtest_args):
])
if sys.platform == 'win32':
args.append('-n') # Silence alerts under Windows
if threading and not any(is_multiprocess_flag(arg) for arg in regrtest_args):
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):
args.extend(['-u', 'all,-largefile,-audio,-gui'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment