summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-04-28 22:49:03 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-04-28 22:49:03 (GMT)
commit31b89599e92b8a98de3402199f786fda6fb33a8d (patch)
tree729acc95b929310837c895623dd5de0be7b814a8 /Lib/test/support.py
parent5aefa6637cadab22274aa96686cdfb132300e81d (diff)
parent390ea0f25dadf429d4bea630ba6d2ec06c6c2e10 (diff)
downloadcpython-31b89599e92b8a98de3402199f786fda6fb33a8d.zip
cpython-31b89599e92b8a98de3402199f786fda6fb33a8d.tar.gz
cpython-31b89599e92b8a98de3402199f786fda6fb33a8d.tar.bz2
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
Diffstat (limited to 'Lib/test/support.py')
-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 800f0e5..e8a5911 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -835,6 +835,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)