]> granicus.if.org Git - python/commitdiff
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
authorBerker Peksag <berker.peksag@gmail.com>
Thu, 20 Sep 2018 15:08:57 +0000 (18:08 +0300)
committerGitHub <noreply@github.com>
Thu, 20 Sep 2018 15:08:57 +0000 (18:08 +0300)
Lib/test/support/__init__.py

index 19701cf388fe4e30a279abebe20440e702590145..ed0d46de6426d61b8089c7e4020fc5209429dec4 100644 (file)
@@ -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),