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

Method test_introspection3

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

Source from the content-addressed store, hash-verified

894 @make_request_and_skipIf(sys.flags.optimize >= 2,
895 "Docstrings are omitted with -O2 and above")
896 def test_introspection3(self):
897 try:
898 # test native doc
899 p = xmlrpclib.ServerProxy(URL)
900 myfunction = p.system.methodHelp('my_function')
901 self.assertEqual(myfunction, 'This is my function')
902 except (xmlrpclib.ProtocolError, OSError) as e:
903 # ignore failures due to non-blocking socket 'unavailable' errors
904 if not is_unavailable_exception(e):
905 # protocol error; provide additional information in test output
906 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
907
908 def test_introspection4(self):
909 # the SimpleXMLRPCServer doesn't support signatures, but

Callers

nothing calls this directly

Calls 3

is_unavailable_exceptionFunction · 0.85
assertEqualMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected