Try to fix failure of a Windows buildbot to capture name resolution errors.

This commit is contained in:
Antoine Pitrou 2012-06-26 00:48:59 +02:00
parent c14bae47b8
commit ed04f42b99
1 changed files with 3 additions and 0 deletions

View File

@ -767,6 +767,9 @@ def transient_internet(resource_name, timeout=30.0, errnos=()):
('EAI_FAIL', -4),
('EAI_NONAME', -2),
('EAI_NODATA', -5),
# Windows defines EAI_NODATA as 11001 but idiotic getaddrinfo()
# implementation actually returns WSANO_DATA i.e. 11004.
('WSANO_DATA', 11004),
]
denied = ResourceDenied("Resource '%s' is not available" % resource_name)