Skip to content

Commit 9503dd1

Browse files
authored
bpo-27103: regrtest disables -W if -R is used (#1660)
Workaround for a regrtest bug.
1 parent f5633e0 commit 9503dd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/regrtest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,11 @@ def _parse_args(args, **kwargs):
425425
ns.use_resources.append(r)
426426
if ns.random_seed is not None:
427427
ns.randomize = True
428+
if ns.huntrleaks and ns.verbose3:
429+
ns.verbose3 = False
430+
print("WARNING: Disable --verbose3 because it's incompatible with "
431+
"--huntrleaks: see http://bugs.python.org/issue27103",
432+
file=sys.stderr)
428433

429434
return ns
430435

0 commit comments

Comments
 (0)