bpo-27103: regrtest disables -W if -R is used (#1651)

Workaround for a regrtest bug.
This commit is contained in:
Victor Stinner 2017-05-18 13:03:24 -07:00 committed by GitHub
parent 3972628de3
commit fcdd9b6b7e
1 changed files with 5 additions and 0 deletions

View File

@ -345,5 +345,10 @@ def _parse_args(args, **kwargs):
ns.randomize = True
if ns.verbose:
ns.header = True
if ns.huntrleaks and ns.verbose3:
ns.verbose3 = False
print("WARNING: Disable --verbose3 because it's incompatible with "
"--huntrleaks: see http://bugs.python.org/issue27103",
file=sys.stderr)
return ns