Commit ac1a2489 authored by Nick Coghlan's avatar Nick Coghlan

Close #19284: Handle -R properly in flag helper

Previously, the -R option would be specified multiple times
if PYTHONHASHSEED was set.
parent ef23f187
......@@ -506,6 +506,8 @@ def _args_from_interpreter_flags():
for flag, opt in flag_opt_map.items():
v = getattr(sys.flags, flag)
if v > 0:
if flag == 'hash_randomization':
v = 1 # Handle specification of an exact seed
args.append('-' + opt * v)
for opt in sys.warnoptions:
args.append('-W' + opt)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment