mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows
This commit is contained in:
parent
d0f89f3247
commit
8a14a0c88b
1 changed files with 2 additions and 1 deletions
|
@ -474,7 +474,8 @@ class NetworkedTests(unittest.TestCase):
|
||||||
try:
|
try:
|
||||||
s.setblocking(False)
|
s.setblocking(False)
|
||||||
rc = s.connect_ex(('svn.python.org', 443))
|
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
|
# Wait for connect to finish
|
||||||
select.select([], [s], [], 5.0)
|
select.select([], [s], [], 5.0)
|
||||||
# Non-blocking handshake
|
# Non-blocking handshake
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue