From fcdd9b6b7e73427ce5aa63cf095312f603c4edce Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 18 May 2017 13:03:24 -0700 Subject: [PATCH] bpo-27103: regrtest disables -W if -R is used (#1651) Workaround for a regrtest bug. --- Lib/test/libregrtest/cmdline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py index 8260b091fb0..8b658a40f51 100644 --- a/Lib/test/libregrtest/cmdline.py +++ b/Lib/test/libregrtest/cmdline.py @@ -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