]> granicus.if.org Git - python/commitdiff
bpo-27103: regrtest disables -W if -R is used (#1651)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 18 May 2017 20:03:24 +0000 (13:03 -0700)
committerGitHub <noreply@github.com>
Thu, 18 May 2017 20:03:24 +0000 (13:03 -0700)
Workaround for a regrtest bug.

Lib/test/libregrtest/cmdline.py

index 8260b091fb051ee4f3aee2474b7f28c8de884928..8b658a40f51e10598319d380facfa84a93509a0b 100644 (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