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

antoine.pitrou python-checkins at python.org
Sat Jul 9 02:35:01 CEST 2011


http://hg.python.org/cpython/rev/a9c6f468012e
changeset: 71271:a9c6f468012e
branch: 2.7
parent: 71260:e6e37f1e29ca
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Jul 09 02:34:05 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/test_support.py | 1 +
 Misc/NEWS | 3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -763,6 +763,7 @@
 ('ETIMEDOUT', 110),
 ]
 default_gai_errnos = [
+ ('EAI_AGAIN', -3),
 ('EAI_NONAME', -2),
 ('EAI_NODATA', -5),
 ]
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,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 によって変換されたページ (->オリジナル) /