[Python-checkins] bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
Berker Peksag
webhook-mailer at python.org
Thu Sep 20 11:09:08 EDT 2018
https://github.com/python/cpython/commit/8213eaddf3ce8e87564d2949454903a1484748b5
commit: 8213eaddf3ce8e87564d2949454903a1484748b5
branch: master
author: Berker Peksag <berker.peksag at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-09-20T18:08:57+03:00
summary:
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
files:
M Lib/test/support/__init__.py
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 19701cf388fe..ed0d46de6426 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1426,6 +1426,9 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
('EHOSTUNREACH', 113),
('ENETUNREACH', 101),
('ETIMEDOUT', 110),
+ # socket.create_connection() fails randomly with
+ # EADDRNOTAVAIL on Travis CI.
+ ('EADDRNOTAVAIL', 99),
]
default_gai_errnos = [
('EAI_AGAIN', -3),
More information about the Python-checkins
mailing list