Issue #14727: Fix race in test_multiprocessing

This commit is contained in:
Richard Oudkerk 2012-05-08 22:24:47 +01:00
parent 104b3f4bf7
commit 5d73c178a8
1 changed files with 1 additions and 1 deletions

View File

@ -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()