mirror of https://github.com/python/cpython
Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for
debug
This commit is contained in:
parent
d9375f121e
commit
9dd826b30b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue