diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 258fdcbcf0e..7ac845a8a0f 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() + listener.listen(1) client = socket.socket() client.connect(listener.getsockname())