]> granicus.if.org Git - python/commitdiff
Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Jun 2014 10:32:59 +0000 (12:32 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Jun 2014 10:32:59 +0000 (12:32 +0200)
debug

Lib/test/test_asyncio/test_streams.py

index 73a375aba42d2fbfe7ce3673f441e31add69ea50..8adc3b29215570cb7f9890b750bdbd77ae46aee8 100644 (file)
@@ -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)