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