From: Victor Stinner Date: Mon, 30 Jun 2014 10:32:59 +0000 (+0200) Subject: Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for X-Git-Tag: v3.5.0a1~1375 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9dd826b30b1d2cc5a68715699c3496dd162a89ae;p=python Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for debug --- 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)