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

Method test_introspection4

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

Source from the content-addressed store, hash-verified

906 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
907
908 def test_introspection4(self):
909 # the SimpleXMLRPCServer doesn't support signatures, but
910 # at least check that we can try making the call
911 try:
912 p = xmlrpclib.ServerProxy(URL)
913 divsig = p.system.methodSignature('div')
914 self.assertEqual(divsig, 'signatures not supported')
915 except (xmlrpclib.ProtocolError, OSError) as e:
916 # ignore failures due to non-blocking socket 'unavailable' errors
917 if not is_unavailable_exception(e):
918 # protocol error; provide additional information in test output
919 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
920
921 def test_multicall(self):
922 try:

Callers

nothing calls this directly

Calls 3

is_unavailable_exceptionFunction · 0.85
assertEqualMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected