diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-28 22:49:03 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-28 22:49:03 (GMT) |
commit | 31b89599e92b8a98de3402199f786fda6fb33a8d (patch) | |
tree | 729acc95b929310837c895623dd5de0be7b814a8 /Lib/test/support.py | |
parent | 5aefa6637cadab22274aa96686cdfb132300e81d (diff) | |
parent | 390ea0f25dadf429d4bea630ba6d2ec06c6c2e10 (diff) | |
download | cpython-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.py | 2 |
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) |