MCPcopy Index your code
hub / github.com/RustPython/RustPython / make_request_and_skip

Function make_request_and_skip

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

is_unavailable_exceptionFunction · 0.85

Tested by

no test coverage detected