Commits

sbt committed 3d900c9

Issue #14727: Fix race in test_multiprocessing

Comments (0)

Files changed (1)

Lib/test/test_multiprocessing.py

 
         l = socket.socket()
         l.bind(('localhost', 0))
+        l.listen(1)
         conn.send(l.getsockname())
-        l.listen(1)
         new_conn, addr = l.accept()
         conn.send(new_conn)
         new_conn.close()