summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-09 00:32:36 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-09 00:32:36 (GMT)
commit13d7db19f6cc84208e5084384aba7462cff88e9e (patch)
tree64039b380f39532440cbc9726c2a5594510ecf96
parent600012028e13cb88a4d32627ced48ef0be7f2b89 (diff)
parent4875c4653881b1cb7095b6cfd46808cd130b5c88 (diff)
downloadcpython-13d7db19f6cc84208e5084384aba7462cff88e9e.zip
cpython-13d7db19f6cc84208e5084384aba7462cff88e9e.tar.gz
cpython-13d7db19f6cc84208e5084384aba7462cff88e9e.tar.bz2
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution. Should fix a buildbot failure.
-rw-r--r--Lib/test/support.py1
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index 2ce013f..ba53ab9 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -909,6 +909,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 414db05..c4c8430 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1008,6 +1008,9 @@ Extension Modules
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.