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

Workaround for a regrtest bug.
(cherry picked from commit fcdd9b6b7e)
This commit is contained in:
Victor Stinner 2017-05-18 13:36:51 -07:00 committed by GitHub
parent 44944b602a
commit 2773add19a

View file

@ -343,5 +343,10 @@ def _parse_args(args, **kwargs):
ns.use_resources.append(r)
if ns.random_seed is not None:
ns.randomize = 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