diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-05-18 20:36:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 20:36:51 (GMT) |
commit | 2773add19aff873377d81e3bb6ab8aa942756f5a (patch) | |
tree | 9a1ef4545afd6d3515143ff97e6d0317e6dc6fed | |
parent | 44944b602af23712d7119801183cdc6e202e4f76 (diff) | |
download | cpython-2773add19aff873377d81e3bb6ab8aa942756f5a.zip cpython-2773add19aff873377d81e3bb6ab8aa942756f5a.tar.gz cpython-2773add19aff873377d81e3bb6ab8aa942756f5a.tar.bz2 |
bpo-27103: regrtest disables -W if -R is used (#1651) (#1656)
Workaround for a regrtest bug.
(cherry picked from commit fcdd9b6b7e73427ce5aa63cf095312f603c4edce)
-rw-r--r-- | Lib/test/libregrtest/cmdline.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py index d621f5f..cdbd1b8 100644 --- a/Lib/test/libregrtest/cmdline.py +++ b/Lib/test/libregrtest/cmdline.py @@ -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 |