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

Skip to content

Commit 8a14a0c

Browse files
committed
Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows
1 parent d0f89f3 commit 8a14a0c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_ssl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ def test_non_blocking_connect_ex(self):
474474
try:
475475
s.setblocking(False)
476476
rc = s.connect_ex(('svn.python.org', 443))
477-
self.assertIn(rc, (0, errno.EINPROGRESS))
477+
# EWOULDBLOCK under Windows, EINPROGRESS elsewhere
478+
self.assertIn(rc, (0, errno.EINPROGRESS, errno.EWOULDBLOCK))
478479
# Wait for connect to finish
479480
select.select([], [s], [], 5.0)
480481
# Non-blocking handshake

0 commit comments

Comments
 (0)