Skip to content

Commit 8213ead

Browse files
authored
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (pythonGH-9446)
1 parent b10a64d commit 8213ead

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
@@ -1426,6 +1426,9 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
14261426
('EHOSTUNREACH', 113),
14271427
('ENETUNREACH', 101),
14281428
('ETIMEDOUT', 110),
1429+
# socket.create_connection() fails randomly with
1430+
# EADDRNOTAVAIL on Travis CI.
1431+
('EADDRNOTAVAIL', 99),
14291432
]
14301433
default_gai_errnos = [
14311434
('EAI_AGAIN', -3),

0 commit comments

Comments
 (0)