]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459)
authorVictor Stinner <vstinner@redhat.com>
Wed, 6 Jun 2018 21:33:31 +0000 (23:33 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Jun 2018 21:33:31 +0000 (23:33 +0200)
test_io hangs with --huntrleaks: exclude the test in regrtest.

Lib/test/regrtest.py

index d19be8878a46cae0652c5346938801f104427882..97ba2ad71ac407f130c236d7908edfb0de3c086c 100755 (executable)
@@ -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