From: Martin Panter Date: Fri, 15 Jan 2016 01:16:41 +0000 (+0000) Subject: Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUT X-Git-Tag: 3.2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=035583b389c614b06faf811b062c7ecbf74fce20;p=python Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUT --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 69a80d0a57..f587945afd 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -608,7 +608,9 @@ class NetworkedTests(unittest.TestCase): ca_certs=REMOTE_ROOT_CERT) try: rc = s.connect_ex((REMOTE_HOST, 444)) - self.assertIn(rc, (errno.ECONNREFUSED, errno.EHOSTUNREACH)) + errors = ( + errno.ECONNREFUSED, errno.EHOSTUNREACH, errno.ETIMEDOUT) + self.assertIn(rc, errors) finally: s.close()