From 989c2c05a67e539c967a4d9d41ca555852d0d5a5 Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Tue, 13 Feb 2024 15:04:06 -0600 Subject: [PATCH] Now that I enabled c-ares tests on all Linux builds, there is one getaddrinfo test in 3.12 that has to be disabled; ares doesn't like that syntax. --- src/gevent/resolver/ares.py | 2 ++ src/gevent/testing/patched_tests_setup.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/gevent/resolver/ares.py b/src/gevent/resolver/ares.py index 2da3c5c53..8ec22256f 100644 --- a/src/gevent/resolver/ares.py +++ b/src/gevent/resolver/ares.py @@ -94,6 +94,8 @@ class Resolver(AbstractResolver): - ``getaddrinfo`` may return canonical names even without the ``AI_CANONNAME`` being set. + - ``getaddrinfo`` does not appear to support IPv6 symbolic scope IDs. + .. caution:: This module is considered extremely experimental on PyPy, and diff --git a/src/gevent/testing/patched_tests_setup.py b/src/gevent/testing/patched_tests_setup.py index fabb3ff45..0d0f6d95a 100644 --- a/src/gevent/testing/patched_tests_setup.py +++ b/src/gevent/testing/patched_tests_setup.py @@ -1298,6 +1298,12 @@ def test(*args, **kwargs): 'test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_server', ] + if ARES: + disabled_tests += [ + # c-ares doesn't like the IPv6 syntax it uses here. + 'test_socket.GeneralModuleTeststest_getaddrinfo_ipv6_scopeid_symbolic', + ] + if TRAVIS: disabled_tests += [ # These tests frequently break when we try to use newer Travis CI images,