Skip to content

Commit 6da074e

Browse files
committed
Fix the Windows buildbots.
Apparently, settimeout() implicitly makes the socket non-blocking.
1 parent 64f7480 commit 6da074e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_ssl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4642,6 +4642,7 @@ def background(sock):
46424642
server_hostname=hostname) as sock:
46434643
sock.connect((HOST, server.port))
46444644
sock.settimeout(1)
4645+
sock.setblocking(1)
46454646
# Ensure that the server is ready to accept requests
46464647
sock.sendall(b"123")
46474648
self.assertEqual(sock.recv(3), b"123")

0 commit comments

Comments
 (0)