summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-02-27 15:45:16 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-02-27 15:45:16 (GMT)
commitd1c9845b54b6e4e53df6da01b62cea08cba082db (patch)
tree7a4efa45fc2d42f04bef95182cac3be0a626429d /Lib/test/test_ssl.py
parentf3352e7c1f77ad227b7e9db3d0f49c9d8ac72c1c (diff)
downloadcpython-d1c9845b54b6e4e53df6da01b62cea08cba082db.zip
cpython-d1c9845b54b6e4e53df6da01b62cea08cba082db.tar.gz
cpython-d1c9845b54b6e4e53df6da01b62cea08cba082db.tar.bz2
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 ........
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 3347e9e..164b6c2 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