Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d73c17

Browse files
committed
Issue #14727: Fix race in test_multiprocessing
1 parent 104b3f4 commit 5d73c17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2003,8 +2003,8 @@ def _listener(cls, conn, families):
20032003

20042004
l = socket.socket()
20052005
l.bind(('localhost', 0))
2006-
conn.send(l.getsockname())
20072006
l.listen(1)
2007+
conn.send(l.getsockname())
20082008
new_conn, addr = l.accept()
20092009
conn.send(new_conn)
20102010
new_conn.close()

0 commit comments

Comments
 (0)