Skip to content

Commit 27cbe83

Browse files
committed
Add ETIMEDOUT handling to get_socket_conn_refused_errs
1 parent 802556a commit 27cbe83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/support/socket_helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ def get_socket_conn_refused_errs():
186186
errors.append(errno.EHOSTUNREACH)
187187
if not IPV6_ENABLED:
188188
errors.append(errno.EAFNOSUPPORT)
189+
if hasattr(errno, 'ETIMEDOUT'):
190+
errors.append(errno.ETIMEDOUT)
189191
return errors
190192

191193

0 commit comments

Comments
 (0)