mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUT
This commit is contained in:
parent
3d81d93f34
commit
035583b389
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue