(self)
| 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 |
nothing calls this directly
no test coverage detected