]> granicus.if.org Git - python/commitdiff
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 9 Jul 2011 00:34:05 +0000 (02:34 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 9 Jul 2011 00:34:05 +0000 (02:34 +0200)
failure in name resolution.

Should fix a buildbot failure.

Lib/test/test_support.py
Misc/NEWS

index de56e9e1b4180764846127d191b70623c3bf2de6..4cdfe7f9bec61fd1c702ab37b9baeb3d3d27e46d 100644 (file)
@@ -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),
     ]
index 9607a4dc79ace64b50d8deeadc8082d7bc052f5c..97a4acb7ef8aaf24f3ca5ada38a756013f8ac6e6 100644 (file)
--- 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.