Skip to content

Commit 2773add

Browse files
authored
bpo-27103: regrtest disables -W if -R is used (#1651) (#1656)
Workaround for a regrtest bug. (cherry picked from commit fcdd9b6)
1 parent 44944b6 commit 2773add

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
@@ -343,5 +343,10 @@ def _parse_args(args, **kwargs):
343343
ns.use_resources.append(r)
344344
if ns.random_seed is not None:
345345
ns.randomize = True
346+
if ns.huntrleaks and ns.verbose3:
347+
ns.verbose3 = False
348+
print("WARNING: Disable --verbose3 because it's incompatible with "
349+
"--huntrleaks: see http://bugs.python.org/issue27103",
350+
file=sys.stderr)
346351

347352
return ns

0 commit comments

Comments
 (0)