From 035583b389c614b06faf811b062c7ecbf74fce20 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Fri, 15 Jan 2016 01:16:41 +0000 Subject: [PATCH] Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUT --- Lib/test/test_ssl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- 2.40.0