Skip to content

Commit d39dbf4

Browse files
authored
Simplify run_tests.py (#3482)
1 parent 8b57d73 commit d39dbf4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tools/scripts/run_tests.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
import os
1111
import sys
1212
import test.support
13-
try:
14-
import threading
15-
except ImportError:
16-
threading = None
1713

1814

1915
def is_multiprocess_flag(arg):
@@ -43,7 +39,7 @@ def main(regrtest_args):
4339
])
4440
if sys.platform == 'win32':
4541
args.append('-n') # Silence alerts under Windows
46-
if threading and not any(is_multiprocess_flag(arg) for arg in regrtest_args):
42+
if not any(is_multiprocess_flag(arg) for arg in regrtest_args):
4743
args.extend(['-j', '0']) # Use all CPU cores
4844
if not any(is_resource_use_flag(arg) for arg in regrtest_args):
4945
args.extend(['-u', 'all,-largefile,-audio,-gui'])

0 commit comments

Comments
 (0)