Skip to content

Commit 02b4d67

Browse files
authored
bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459)
test_io hangs with --huntrleaks: exclude the test in regrtest.
1 parent 67b7158 commit 02b4d67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/regrtest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
577577
nottests.add(arg)
578578
args = []
579579

580+
if huntrleaks:
581+
# FIXME: bpo-31731: test_io hangs with --huntrleaks
582+
print("Warning: bpo-31731: test_io hangs with --huntrleaks: "
583+
"exclude the test")
584+
nottests.add('test_io')
585+
580586
display_header = (verbose or header or not (quiet or single or tests or args)) and (not pgo)
581587
alltests = findtests(testdir, stdtests, nottests)
582588
selected = tests or args or alltests

0 commit comments

Comments
 (0)