summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-30 10:32:59 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-30 10:32:59 (GMT)
commit9dd826b30b1d2cc5a68715699c3496dd162a89ae (patch)
treed671cd9b8409a34e003f3866f2d05a6379779a5a /Lib
parentd9375f121e6d1e2bd63da6e0a7aa502535fc25d5 (diff)
downloadcpython-9dd826b30b1d2cc5a68715699c3496dd162a89ae.zip
cpython-9dd826b30b1d2cc5a68715699c3496dd162a89ae.tar.gz
cpython-9dd826b30b1d2cc5a68715699c3496dd162a89ae.tar.bz2
Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for
debug
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_asyncio/test_streams.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py
index 73a375a..8adc3b2 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)