[Python-checkins] cpython (merge 3.2 -> default): Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
antoine.pitrou
python-checkins at python.org
Sat Jul 9 02:33:32 CEST 2011
http://hg.python.org/cpython/rev/b039b16f0415
changeset: 71270:b039b16f0415
parent: 71268:1a6d69dad821
parent: 71269:ef4b40eb52cc
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Jul 09 02:32:36 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
@@ -909,6 +909,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
@@ -1008,6 +1008,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