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

Method test_nonascii

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

Source from the content-addressed store, hash-verified

820 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
821
822 def test_nonascii(self):
823 start_string = 'P\N{LATIN SMALL LETTER Y WITH CIRCUMFLEX}t'
824 end_string = 'h\N{LATIN SMALL LETTER O WITH HORN}n'
825 try:
826 p = xmlrpclib.ServerProxy(URL)
827 self.assertEqual(p.add(start_string, end_string),
828 start_string + end_string)
829 except (xmlrpclib.ProtocolError, OSError) as e:
830 # ignore failures due to non-blocking socket 'unavailable' errors
831 if not is_unavailable_exception(e):
832 # protocol error; provide additional information in test output
833 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
834
835 @unittest.expectedFailure # TODO: RUSTPYTHON
836 def test_client_encoding(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected