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

Method test_introspection2

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

Source from the content-addressed store, hash-verified

884
885
886 def test_introspection2(self):
887 try:
888 # test _methodHelp()
889 p = xmlrpclib.ServerProxy(URL)
890 divhelp = p.system.methodHelp('div')
891 self.assertEqual(divhelp, 'This is the div function')
892 except (xmlrpclib.ProtocolError, OSError) as e:
893 # ignore failures due to non-blocking socket 'unavailable' errors
894 if not is_unavailable_exception(e):
895 # protocol error; provide additional information in test output
896 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
897
898 @make_request_and_skipIf(sys.flags.optimize >= 2,
899 "Docstrings are omitted with -O2 and above")

Callers

nothing calls this directly

Calls 4

is_unavailable_exceptionFunction · 0.85
getattrFunction · 0.85
assertEqualMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected