From: Antoine Pitrou Date: Wed, 23 Mar 2011 19:10:18 +0000 (+0100) Subject: Fix transmitting warning options to the children when running tests in X-Git-Tag: v3.3.0a1~2780^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5066b03361a7e0e00dbaaad87a652cfb667f8ad8;p=python Fix transmitting warning options to the children when running tests in parallel (thanks Michael for pointing this). --- diff --git a/Lib/test/support.py b/Lib/test/support.py index 66d7f93437..52ec2320db 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -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 #============================================================