Skip to content

Commit fcdd9b6

Browse files
authored
bpo-27103: regrtest disables -W if -R is used (#1651)
Workaround for a regrtest bug.
1 parent 3972628 commit fcdd9b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/libregrtest/cmdline.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,10 @@ def _parse_args(args, **kwargs):
345345
ns.randomize = True
346346
if ns.verbose:
347347
ns.header = True
348+
if ns.huntrleaks and ns.verbose3:
349+
ns.verbose3 = False
350+
print("WARNING: Disable --verbose3 because it's incompatible with "
351+
"--huntrleaks: see http://bugs.python.org/issue27103",
352+
file=sys.stderr)
348353

349354
return ns

0 commit comments

Comments
 (0)