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