diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-06-30 15:24:43 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-06-30 15:24:43 (GMT) |
commit | c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b (patch) | |
tree | ed96b086ade6f8a2b2c3b589918636d450f64ad3 /Lib/test/support | |
parent | 0d671c04c39b52e44597491b893eb0b6c86b3d45 (diff) | |
download | cpython-c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b.zip cpython-c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b.tar.gz cpython-c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b.tar.bz2 |
bpo-37199: Fix test failures when IPv6 is unavailable or disabled (#14480)
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 19ea976..a65de4a 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -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 |