Commit fe3dd6fc authored by Antoine Pitrou's avatar Antoine Pitrou

Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows

parent 135436c3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment