]> granicus.if.org Git - python/commitdiff
Issue #13453: Catch EAI_FAIL in support.transient_internet.
authorCharles-François Natali <neologix@free.fr>
Sat, 10 Dec 2011 12:16:44 +0000 (13:16 +0100)
committerCharles-François Natali <neologix@free.fr>
Sat, 10 Dec 2011 12:16:44 +0000 (13:16 +0100)
Lib/test/support.py

index ab71d470126dd501c34fa56a6a0710a084e0756d..51375d5d6b037c91964b3e6797e0c385b4c95ae0 100644 (file)
@@ -877,6 +877,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
     ]
     default_gai_errnos = [
         ('EAI_AGAIN', -3),
+        ('EAI_FAIL', -4),
         ('EAI_NONAME', -2),
         ('EAI_NODATA', -5),
         # Encountered when trying to resolve IPv6-only hostnames