]> granicus.if.org Git - python/commitdiff
Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUT
authorMartin Panter <vadmium+py@gmail.com>
Fri, 15 Jan 2016 01:16:41 +0000 (01:16 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Fri, 15 Jan 2016 01:16:41 +0000 (01:16 +0000)
Lib/test/test_ssl.py

index 69a80d0a57288f7c40fb8e0e57384a6c5a0ecb64..f587945afdfb63b45f2bc8c9690a431e16518b0c 100644 (file)
@@ -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()