[Python-checkins] cpython (3.2): Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary

antoine.pitrou python-checkins at python.org
Sat Jul 9 02:32:20 CEST 2011


http://hg.python.org/cpython/rev/ef4b40eb52cc
changeset: 71269:ef4b40eb52cc
branch: 3.2
parent: 71261:6e72490bbff6
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Jul 09 02:31:24 2011 +0200
summary:
 Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.
Should fix a buildbot failure.
files:
 Lib/test/support.py | 1 +
 Misc/NEWS | 3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/support.py b/Lib/test/support.py
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -867,6 +867,7 @@
 ('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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -47,6 +47,9 @@
 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.
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /