Fix transmitting warning options to the children when running tests in

parallel (thanks Michael for pointing this).
This commit is contained in:
Antoine Pitrou 2011-03-23 20:10:18 +01:00
parent 3dcf745a61
commit 5066b03361
1 changed files with 2 additions and 3 deletions

View File

@ -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
#============================================================