]> granicus.if.org Git - python/commitdiff
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 28 Apr 2011 22:44:33 +0000 (00:44 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 28 Apr 2011 22:44:33 +0000 (00:44 +0200)
Lib/test/support.py

index 8d8e18735ebbae0db966e7b9ad1dc1d2a42f16ad..a9e1b77ce7a5c59166a319561726740f10e37b77 100644 (file)
@@ -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)