summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-08 10:28:11 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-08 10:28:11 (GMT)
commit5d938cb36689321d7a72e4711f66969809dcc8b0 (patch)
tree92bfd3566b1392c7abe067f71735e406e37cdead
parent83b1ab0d6a832ed60ca1cc2029f4b7d7d367e7fb (diff)
downloadcpython-5d938cb36689321d7a72e4711f66969809dcc8b0.zip
cpython-5d938cb36689321d7a72e4711f66969809dcc8b0.tar.gz
cpython-5d938cb36689321d7a72e4711f66969809dcc8b0.tar.bz2
Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
-rw-r--r--Lib/test/support.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index fb15d64..152cac9 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -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),
]