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

Method test_nonascii_methodname

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

Source from the content-addressed store, hash-verified

844 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
845
846 def test_nonascii_methodname(self):
847 try:
848 p = xmlrpclib.ServerProxy(URL, encoding='ascii')
849 self.assertEqual(p.têšt(42), 42)
850 except (xmlrpclib.ProtocolError, socket.error) as e:
851 # ignore failures due to non-blocking socket unavailable errors.
852 if not is_unavailable_exception(e):
853 # protocol error; provide additional information in test output
854 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
855
856 def test_404(self):
857 # send POST with http.client, it should return 404 header and

Callers

nothing calls this directly

Calls 3

is_unavailable_exceptionFunction · 0.85
assertEqualMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected