MCPcopy
hub / github.com/urllib3/urllib3 / _is_unreachable_err

Function _is_unreachable_err

test/__init__.py:151–155  ·  view source on GitHub ↗
(err: Exception)

Source from the content-addressed store, hash-verified

149 """Helps you skip tests that require the network"""
150
151 def _is_unreachable_err(err: Exception) -> bool:
152 return getattr(err, "errno", None) in (
153 errno.ENETUNREACH,
154 errno.EHOSTUNREACH, # For OSX
155 )
156
157 def _has_route() -> bool:
158 try:

Callers 1

_has_routeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected