]> granicus.if.org Git - python/commitdiff
Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 8 Jan 2011 10:28:11 +0000 (10:28 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 8 Jan 2011 10:28:11 +0000 (10:28 +0000)
Lib/test/support.py

index fb15d64fe410401e0f28e915fd496d89bcb4c45e..152cac9bee32ba23b4a29ea61711ee27cd17136e 100644 (file)
@@ -800,6 +800,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
     default_errnos = [
         ('ECONNREFUSED', 111),
         ('ECONNRESET', 104),
+        ('EHOSTUNREACH', 113),
         ('ENETUNREACH', 101),
         ('ETIMEDOUT', 110),
     ]