Commit ed04f42b authored by Antoine Pitrou's avatar Antoine Pitrou

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

parent c14bae47
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment