diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 3347e9e6f3b..164b6c262a5 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -474,7 +474,8 @@ def test_non_blocking_connect_ex(self): try: s.setblocking(False) rc = s.connect_ex(('svn.python.org', 443)) - self.assertIn(rc, (0, errno.EINPROGRESS)) + # EWOULDBLOCK under Windows, EINPROGRESS elsewhere + self.assertIn(rc, (0, errno.EINPROGRESS, errno.EWOULDBLOCK)) # Wait for connect to finish select.select([], [s], [], 5.0) # Non-blocking handshake