Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for

debug
This commit is contained in:
Victor Stinner 2014-06-30 12:32:59 +02:00
parent d9375f121e
commit 9dd826b30b
1 changed files with 6 additions and 0 deletions

View File

@ -596,6 +596,12 @@ class StreamReaderTests(test_utils.TestCase):
code = """\ code = """\
import os, sys import os, sys
try:
import faulthandler
except ImportError:
pass
else:
faulthandler.dump_traceback_later(60, exit=True)
fd = int(sys.argv[1]) fd = int(sys.argv[1])
os.write(fd, b'data') os.write(fd, b'data')
os.close(fd) os.close(fd)