]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 9 Jul 2011 00:31:24 +0000 (02:31 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 9 Jul 2011 00:31:24 +0000 (02:31 +0200)
failure in name resolution.

Should fix a buildbot failure.

Lib/test/support.py
Misc/NEWS

index 83ea6c1bf0fc7c7951fff2653939aa7fdc75f0c3..e2d7ae05a5845983d372473d179beebdee690e8d 100644 (file)
@@ -867,6 +867,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
index e4ddb3cd5d93fc28b7f6b65db8e526cd6d556c2c..b550cc2136c7049ba6261efd55a1c4bed33f5584 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -19,6 +19,9 @@ Library
 Tests
 -----
 
+- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
+  failure in name resolution.
+
 - Avoid failing in test_urllibnet.test_bad_address when some overzealous
   DNS service (e.g. OpenDNS) resolves a non-existent domain name.  The test
   is now skipped instead.