Commit 22985809 authored by Christian Heimes's avatar Christian Heimes

Fixed two of the three failing xml rpc tests

parent 1d785a0c
...@@ -479,7 +479,7 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): ...@@ -479,7 +479,7 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def report_404 (self): def report_404 (self):
# Report a 404 error # Report a 404 error
self.send_response(404) self.send_response(404)
response = 'No such page' response = b'No such page'
self.send_header("Content-type", "text/plain") self.send_header("Content-type", "text/plain")
self.send_header("Content-length", str(len(response))) self.send_header("Content-length", str(len(response)))
self.end_headers() self.end_headers()
......
...@@ -424,7 +424,7 @@ class SimpleServerTestCase(unittest.TestCase): ...@@ -424,7 +424,7 @@ class SimpleServerTestCase(unittest.TestCase):
self.assertEqual(result.results[0]['faultCode'], 1) self.assertEqual(result.results[0]['faultCode'], 1)
self.assertEqual(result.results[0]['faultString'], self.assertEqual(result.results[0]['faultString'],
'<type \'exceptions.Exception\'>:method "this_is_not_exists" ' '<type \'Exception\'>:method "this_is_not_exists" '
'is not supported') 'is not supported')
except xmlrpclib.ProtocolError as e: except xmlrpclib.ProtocolError as e:
# ignore failures due to non-blocking socket 'unavailable' errors # ignore failures due to non-blocking socket 'unavailable' errors
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment