From: Antoine Pitrou Date: Sat, 9 Jul 2011 00:34:05 +0000 (+0200) Subject: Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary X-Git-Tag: v2.7.3rc1~624 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a4a0fed0797b641d2a980cc1b8ef4c77bbae9b5;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/test_support.py b/Lib/test/test_support.py index de56e9e1b418..4cdfe7f9bec6 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -763,6 +763,7 @@ def transient_internet(resource_name, timeout=30.0, errnos=()): ('ETIMEDOUT', 110), ] default_gai_errnos = [ + ('EAI_AGAIN', -3), ('EAI_NONAME', -2), ('EAI_NODATA', -5), ] diff --git a/Misc/NEWS b/Misc/NEWS index 9607a4dc79ac..97a4acb7ef8a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -92,6 +92,9 @@ Build 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.