Skip to content

Commit 035583b

Browse files
committed
Issue python#25940: On Windows, connecting to port 444 returns ETIMEDOUT
1 parent 3d81d93 commit 035583b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_ssl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,9 @@ def test_connect_ex_error(self):
608608
ca_certs=REMOTE_ROOT_CERT)
609609
try:
610610
rc = s.connect_ex((REMOTE_HOST, 444))
611-
self.assertIn(rc, (errno.ECONNREFUSED, errno.EHOSTUNREACH))
611+
errors = (
612+
errno.ECONNREFUSED, errno.EHOSTUNREACH, errno.ETIMEDOUT)
613+
self.assertIn(rc, errors)
612614
finally:
613615
s.close()
614616

0 commit comments

Comments
 (0)