MCPcopy Index your code
hub / github.com/python/cpython / make_request_and_skip

Function make_request_and_skip

Lib/test/test_xmlrpc.py:771–777  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

769 return lambda func: func
770 def decorator(func):
771 def make_request_and_skip(self):
772 try:
773 xmlrpclib.ServerProxy(URL).my_function()
774 except (xmlrpclib.ProtocolError, OSError) as e:
775 if not is_unavailable_exception(e):
776 raise
777 raise unittest.SkipTest(reason)
778 return make_request_and_skip
779 return decorator
780

Callers

nothing calls this directly

Calls 1

is_unavailable_exceptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…