mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merged revisions 88671 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88671 | antoine.pitrou | 2011-02-27 16:44:12 +0100 (dim., 27 févr. 2011) | 3 lines Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows ........
This commit is contained in:
parent
f3352e7c1f
commit
d1c9845b54
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue