diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-23 19:10:18 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-23 19:10:18 (GMT) |
commit | 5066b03361a7e0e00dbaaad87a652cfb667f8ad8 (patch) | |
tree | 089f311e55b3c0de37a9022fc010c762937354a3 /Lib/test/support.py | |
parent | 3dcf745a61373afe412ddb822813baf0fe1f1193 (diff) | |
download | cpython-5066b03361a7e0e00dbaaad87a652cfb667f8ad8.zip cpython-5066b03361a7e0e00dbaaad87a652cfb667f8ad8.tar.gz cpython-5066b03361a7e0e00dbaaad87a652cfb667f8ad8.tar.bz2 |
Fix transmitting warning options to the children when running tests in
parallel (thanks Michael for pointing this).
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r-- | Lib/test/support.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 66d7f93..52ec232 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 #============================================================ |