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

Skip to content

Commit 170ea8c

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 49d6595 commit 170ea8c

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
@@ -1151,6 +1151,9 @@ def transient_internet(resource_name, timeout=30.0, errnos=()):
11511151
('EHOSTUNREACH', 113),
11521152
('ENETUNREACH', 101),
11531153
('ETIMEDOUT', 110),
1154+
# socket.create_connection() fails randomly with
1155+
# EADDRNOTAVAIL on Travis CI.
1156+
('EADDRNOTAVAIL', 99),
11541157
]
11551158
default_gai_errnos = [
11561159
('EAI_AGAIN', -3),

0 commit comments

Comments
 (0)
0