diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index dca6b4241fb..a839917c361 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -2003,8 +2003,8 @@ class _TestPicklingConnections(BaseTestCase): l = socket.socket() l.bind(('localhost', 0)) - conn.send(l.getsockname()) l.listen(1) + conn.send(l.getsockname()) new_conn, addr = l.accept() conn.send(new_conn) new_conn.close()