Merged revisions 87861,87863 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87861 | antoine.pitrou | 2011-01-08 11:23:29 +0100 (sam., 08 janv. 2011) | 3 lines

  Fix test_ssl after r87849
........
  r87863 | antoine.pitrou | 2011-01-08 11:28:11 +0100 (sam., 08 janv. 2011) | 3 lines

  Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
........
This commit is contained in:
Antoine Pitrou 2011-01-08 10:31:09 +00:00
parent 6d6fa47fb0
commit 50778ab4c2
3 changed files with 129 additions and 32 deletions

View file

@ -623,6 +623,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
default_errnos = [
('ECONNREFUSED', 111),
('ECONNRESET', 104),
('EHOSTUNREACH', 113),
('ENETUNREACH', 101),
('ETIMEDOUT', 110),
]