mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-37199: Fix test failures when IPv6 is unavailable or disabled (#14480)
This commit is contained in:
parent
0d671c04c3
commit
c2cda638d6
5 changed files with 21 additions and 4 deletions
|
@ -1493,6 +1493,8 @@ def get_socket_conn_refused_errs():
|
|||
# bpo-31910: socket.create_connection() fails randomly
|
||||
# with EADDRNOTAVAIL on Travis CI
|
||||
errors.append(errno.EADDRNOTAVAIL)
|
||||
if not IPV6_ENABLED:
|
||||
errors.append(errno.EAFNOSUPPORT)
|
||||
return errors
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue