diff --git a/Lib/test/support.py b/Lib/test/support.py index 8d8e18735eb..a9e1b77ce7a 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -839,6 +839,8 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()): default_gai_errnos = [ ('EAI_NONAME', -2), ('EAI_NODATA', -5), + # Encountered when trying to resolve IPv6-only hostnames + ('WSANO_DATA', 11004), ] denied = ResourceDenied("Resource '%s' is not available" % resource_name)