summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py5
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
#============================================================