mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Issue #12804: Prevent "make test" from using network resources.
This commit is contained in:
parent
c5efe65df3
commit
08aa3c0235
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def main(regrtest_args):
|
||||||
if 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
|
args.extend(['-j', '0']) # Use all CPU cores
|
||||||
if not any(is_resource_use_flag(arg) for arg in regrtest_args):
|
if not any(is_resource_use_flag(arg) for arg in regrtest_args):
|
||||||
args.extend(['-u', 'all,-largefile,-audio,-gui'])
|
args.extend(['-u', 'all,-largefile,-network,-urlfetch,-audio,-gui'])
|
||||||
args.extend(regrtest_args)
|
args.extend(regrtest_args)
|
||||||
print(' '.join(args))
|
print(' '.join(args))
|
||||||
os.execv(sys.executable, args)
|
os.execv(sys.executable, args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue