]> granicus.if.org Git - python/commitdiff
bpo-27103: regrtest disables -W if -R is used (#1660)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 19 May 2017 05:12:57 +0000 (22:12 -0700)
committerGitHub <noreply@github.com>
Fri, 19 May 2017 05:12:57 +0000 (22:12 -0700)
Workaround for a regrtest bug.

Lib/test/regrtest.py

index d7ca07b6647986a606820eae5e7d3d98c37fc8d9..6cb9d5ae0e3fc547bb260781a6291d8319d5f911 100755 (executable)
@@ -425,6 +425,11 @@ 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