mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Use -n for tests under Windows
This commit is contained in:
parent
6e5222d5f8
commit
7f0a6ddb90
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue