From 9dd826b30b1d2cc5a68715699c3496dd162a89ae Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 30 Jun 2014 12:32:59 +0200 Subject: [PATCH] Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for debug --- Lib/test/test_asyncio/test_streams.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index 73a375aba4..8adc3b2921 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -596,6 +596,12 @@ class StreamReaderTests(test_utils.TestCase): code = """\ import os, sys +try: + import faulthandler +except ImportError: + pass +else: + faulthandler.dump_traceback_later(60, exit=True) fd = int(sys.argv[1]) os.write(fd, b'data') os.close(fd) -- 2.50.1