mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution. Should fix a buildbot failure.
This commit is contained in:
parent
3aba49899c
commit
9163c473dc
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue