From 02b4d67a38b0c17d87749eeefc51e91baef10857 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 6 Jun 2018 23:33:31 +0200 Subject: [PATCH] bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459) test_io hangs with --huntrleaks: exclude the test in regrtest. --- Lib/test/regrtest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index d19be8878a46..97ba2ad71ac4 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -577,6 +577,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, nottests.add(arg) args = [] + if huntrleaks: + # FIXME: bpo-31731: test_io hangs with --huntrleaks + print("Warning: bpo-31731: test_io hangs with --huntrleaks: " + "exclude the test") + nottests.add('test_io') + display_header = (verbose or header or not (quiet or single or tests or args)) and (not pgo) alltests = findtests(testdir, stdtests, nottests) selected = tests or args or alltests -- 2.47.3