]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-27103: regrtest disables -W if -R is used (#1651) (#1656)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 18 May 2017 20:36:51 +0000 (13:36 -0700)
committerGitHub <noreply@github.com>
Thu, 18 May 2017 20:36:51 +0000 (13:36 -0700)
Workaround for a regrtest bug.
(cherry picked from commit fcdd9b6b7e73427ce5aa63cf095312f603c4edce)

Lib/test/libregrtest/cmdline.py

index d621f5f9f3ee1f0db720d14ec5a0be41e0f64f3a..cdbd1b8b92553c5f0e8eeaa50a0b8d49545b2c75 100644 (file)
@@ -343,5 +343,10 @@ 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