[Python-checkins] bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)

Miss Islington (bot) webhook-mailer at python.org
Thu Sep 20 11:36:26 EDT 2018


https://github.com/python/cpython/commit/1eabe19c57938dd70b66b97239be337294e15cba
commit: 1eabe19c57938dd70b66b97239be337294e15cba
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-09-20T08:36:23-07:00
summary:

bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)

(cherry picked from commit 8213eaddf3ce8e87564d2949454903a1484748b5)

Co-authored-by: Berker Peksag <berker.peksag at gmail.com>

files:
M Lib/test/support/__init__.py

diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 9b3ebbadfe44..3f1962fe1cd2 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1411,6 +1411,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