[Python-checkins] r88671 - python/branches/py3k/Lib/test/test_ssl.py

antoine.pitrou python-checkins at python.org
Sun Feb 27 16:44:13 CET 2011


Author: antoine.pitrou
Date: Sun Feb 27 16:44:12 2011
New Revision: 88671

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



Modified:
   python/branches/py3k/Lib/test/test_ssl.py

Modified: python/branches/py3k/Lib/test/test_ssl.py
==============================================================================
--- python/branches/py3k/Lib/test/test_ssl.py	(original)
+++ python/branches/py3k/Lib/test/test_ssl.py	Sun Feb 27 16:44:12 2011
@@ -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


More information about the Python-checkins mailing list