From: Antoine Pitrou Date: Sat, 9 Jul 2011 00:31:24 +0000 (+0200) Subject: Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary X-Git-Tag: v3.2.2rc1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4875c4653881b1cb7095b6cfd46808cd130b5c88;p=thirdparty%2FPython%2Fcpython.git Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary failure in name resolution. Should fix a buildbot failure. --- diff --git a/Lib/test/support.py b/Lib/test/support.py index 83ea6c1bf0fc..e2d7ae05a584 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -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 diff --git a/Misc/NEWS b/Misc/NEWS index 53b75624918d..1440035f32f5 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -47,6 +47,9 @@ C-API Tests ----- +- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary + failure in name resolution. + - Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder Web site.