8000 bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) · python/cpython@4761770 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4761770

Browse files
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
(cherry picked from commit 8213ead) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
1 parent 4fe8dc6 commit 4761770

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/support/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,9 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
14081408
('EHOSTUNREACH', 113),
14091409
('ENETUNREACH', 101),
14101410
('ETIMEDOUT', 110),
1411+
# socket.create_connection() fails randomly with
1412+
# EADDRNOTAVAIL on Travis CI.
1413+
('EADDRNOTAVAIL', 99),
14111414
]
14121415
default_gai_errnos = [
14131416
('EAI_AGAIN', -3),

0 commit comments

Comments
 (0)
0