Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary

failure in name resolution.

Should fix a buildbot failure.
This commit is contained in:
Antoine Pitrou 2011-07-09 02:31:24 +02:00
parent 95531ea2f1
commit 4875c46538
2 changed files with 4 additions and 0 deletions

View file

@ -867,6 +867,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
('ETIMEDOUT', 110),
]
default_gai_errnos = [
('EAI_AGAIN', -3),
('EAI_NONAME', -2),
('EAI_NODATA', -5),
# Encountered when trying to resolve IPv6-only hostnames