summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_events.py2
-rw-r--r--Lib/test/test_asyncio/test_streams.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 0cfc028..02cdbdc 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -448,7 +448,7 @@ class EventLoopTestsMixin:
listener = socket.socket()
listener.setblocking(False)
listener.bind(('127.0.0.1', 0))
- listener.listen(1)
+ listener.listen()
client = socket.socket()
client.connect(listener.getsockname())
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)