mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #14727: Fix race in test_multiprocessing
This commit is contained in:
parent
104b3f4bf7
commit
5d73c178a8
1 changed files with 1 additions and 1 deletions
|
@ -2003,8 +2003,8 @@ class _TestPicklingConnections(BaseTestCase):
|
||||||
|
|
||||||
l = socket.socket()
|
l = socket.socket()
|
||||||
l.bind(('localhost', 0))
|
l.bind(('localhost', 0))
|
||||||
conn.send(l.getsockname())
|
|
||||||
l.listen(1)
|
l.listen(1)
|
||||||
|
conn.send(l.getsockname())
|
||||||
new_conn, addr = l.accept()
|
new_conn, addr = l.accept()
|
||||||
conn.send(new_conn)
|
conn.send(new_conn)
|
||||||
new_conn.close()
|
new_conn.close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue