summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-09-10 18:32:13 (GMT)
committerGitHub <noreply@github.com>2017-09-10 18:32:13 (GMT)
commitd39dbf4cf18488beb190ab358b7ab38792cd5043 (patch)
treeda50c636c63f663128ba8ce9b4aa009d4eeb2957 /Tools/scripts
parent8b57d7363916869357848e666d03fa7614c47897 (diff)
downloadcpython-d39dbf4cf18488beb190ab358b7ab38792cd5043.zip
cpython-d39dbf4cf18488beb190ab358b7ab38792cd5043.tar.gz
cpython-d39dbf4cf18488beb190ab358b7ab38792cd5043.tar.bz2
Simplify run_tests.py (#3482)
Diffstat (limited to 'Tools/scripts')
-rw-r--r--Tools/scripts/run_tests.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Tools/scripts/run_tests.py b/Tools/scripts/run_tests.py
index 3028302..9fc3799 100644
--- a/Tools/scripts/run_tests.py
+++ b/Tools/scripts/run_tests.py
@@ -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'])