From: Antoine Pitrou Date: Sun, 27 Feb 2011 15:44:12 +0000 (+0000) Subject: Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows X-Git-Tag: v3.3.0a1~3032 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a14a0c88bf5b72da899c9ce9863e14dcd48b9c7;p=python Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 3347e9e6f3..164b6c262a 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -474,7 +474,8 @@ class NetworkedTests(unittest.TestCase): 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