Kaydet (Commit) 035583b3 authored tarafından Martin Panter's avatar Martin Panter

Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUT

üst 3d81d93f
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment