summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-04-28 22:44:33 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-04-28 22:44:33 (GMT)
commit390ea0f25dadf429d4bea630ba6d2ec06c6c2e10 (patch)
tree0c78fd2fad6f52cbcf36889db8b6e743da3c8912
parent1aa422fe8f056fd0000da45a67d875adc75cf034 (diff)
downloadcpython-390ea0f25dadf429d4bea630ba6d2ec06c6c2e10.zip
cpython-390ea0f25dadf429d4bea630ba6d2ec06c6c2e10.tar.gz
cpython-390ea0f25dadf429d4bea630ba6d2ec06c6c2e10.tar.bz2
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
-rw-r--r--Lib/test/support.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index 8d8e187..a9e1b77 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)