Skip to content

Commit cf630d7

Browse files
committed
Stupid workaround.
1 parent 5ff4efc commit cf630d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4647,6 +4647,9 @@ def background(sock):
46474647
args=(sock,), daemon=True)
46484648
thread.start()
46494649
event.wait()
4650+
# We need to yield the GIL to prevent some silly race
4651+
# condition in ThreadedEchoServer
4652+
time.sleep(0)
46504653
sock.sendall(b"1" * 50)
46514654
thread.join()
46524655
if cm.exc_value is not None:

0 commit comments

Comments
 (0)