From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 20 Sep 2018 15:23:45 +0000 (-0700) Subject: bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) X-Git-Tag: v3.7.1rc1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=476177005e8c8d4ece3070c8c378f8b8c068e76f;p=thirdparty%2FPython%2Fcpython.git bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) (cherry picked from commit 8213eaddf3ce8e87564d2949454903a1484748b5) Co-authored-by: Berker Peksag --- diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 2ad563469ae3..4127b50d1fbb 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1408,6 +1408,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),