Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0dace3 commit 1ac2a83Copy full SHA for 1ac2a83
1 file changed
Lib/test/support/__init__.py
@@ -1497,6 +1497,9 @@ def get_socket_conn_refused_errs():
1497
# bpo-31910: socket.create_connection() fails randomly
1498
# with EADDRNOTAVAIL on Travis CI
1499
errors.append(errno.EADDRNOTAVAIL)
1500
+ if hasattr(errno, 'EHOSTUNREACH'):
1501
+ # bpo-37583: The destination host cannot be reached
1502
+ errors.append(errno.EHOSTUNREACH)
1503
if not IPV6_ENABLED:
1504
errors.append(errno.EAFNOSUPPORT)
1505
return errors
0 commit comments