diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-09 02:32:36 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-09 02:32:36 +0200 |
commit | 13d7db19f6cc84208e5084384aba7462cff88e9e (patch) | |
tree | 64039b380f39532440cbc9726c2a5594510ecf96 /Lib/test/support.py | |
parent | 600012028e13cb88a4d32627ced48ef0be7f2b89 (diff) | |
parent | 4875c4653881b1cb7095b6cfd46808cd130b5c88 (diff) | |
download | cpython-git-13d7db19f6cc84208e5084384aba7462cff88e9e.tar.gz |
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.
Should fix a buildbot failure.
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r-- | Lib/test/support.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 2ce013fcdd..ba53ab9979 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 |