mirror of
https://github.com/python/cpython.git
synced 2025-01-13 20:14:10 +08:00
Fix transmitting warning options to the children when running tests in
parallel (thanks Michael for pointing this).
This commit is contained in:
parent
3dcf745a61
commit
5066b03361
@ -1389,9 +1389,8 @@ def args_from_interpreter_flags():
|
||||
v = getattr(sys.flags, flag)
|
||||
if v > 0:
|
||||
args.append('-' + opt * v)
|
||||
if sys.warnoptions:
|
||||
args.append('-W')
|
||||
args.extend(sys.warnoptions)
|
||||
for opt in sys.warnoptions:
|
||||
args.append('-W' + opt)
|
||||
return args
|
||||
|
||||
#============================================================
|
||||
|
Loading…
Reference in New Issue
Block a user