Mercurial > cpython-lru_cache-weakref
changeset 68188:2f07d375ce6e
Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sun, 27 Feb 2011 15:44:12 +0000 |
| parents | 650d14820bd8 |
| children | cbd0608103f6 |
| files | Lib/test/test_ssl.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/test/test_ssl.py Sun Feb 27 15:06:44 2011 +0000 +++ b/Lib/test/test_ssl.py Sun Feb 27 15:44:12 2011 +0000 @@ -474,7 +474,8 @@ 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
