MCPcopy
hub / github.com/urllib3/urllib3 / wrapper

Function wrapper

test/__init__.py:174–180  ·  view source on GitHub ↗
(*args: typing.Any, **kwargs: typing.Any)

Source from the content-addressed store, hash-verified

172
173 @wraps(f)
174 def wrapper(*args: typing.Any, **kwargs: typing.Any) -> typing.Any:
175 global _requires_network_has_route
176 if _requires_network_has_route is None:
177 _requires_network_has_route = _has_route()
178 if not _requires_network_has_route:
179 pytest.skip("Can't run the test because the network is unreachable")
180 return f(*args, **kwargs)
181
182 return typing.cast(_TestFuncT, wrapper)
183

Callers

nothing calls this directly

Calls 2

_has_routeFunction · 0.85
testFunction · 0.85

Tested by

no test coverage detected