[Python-checkins] Simplify run_tests.py (#3482)
Antoine Pitrou
webhook-mailer at python.org
Sun Sep 10 14:32:16 EDT 2017
https://github.com/python/cpython/commit/d39dbf4cf18488beb190ab358b7ab38792cd5043
commit: d39dbf4cf18488beb190ab358b7ab38792cd5043
branch: master
author: Antoine Pitrou <pitrou at free.fr>
committer: GitHub <noreply at github.com>
date: 2017-09-10T20:32:13+02:00
summary:
Simplify run_tests.py (#3482)
files:
M Tools/scripts/run_tests.py
diff --git a/Tools/scripts/run_tests.py b/Tools/scripts/run_tests.py
index 30283023b6d..9fc37997683 100644
--- a/Tools/scripts/run_tests.py
+++ b/Tools/scripts/run_tests.py
@@ -10,10 +10,6 @@
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'])
More information about the Python-checkins
mailing list