mirror of
https://github.com/python/cpython
synced 2024-09-04 15:56:13 +00:00
Fixed two of the three failing xml rpc tests
This commit is contained in:
parent
9bbac5065e
commit
0aa93cda79
|
@ -479,7 +479,7 @@ def do_POST(self):
|
|||
def report_404 (self):
|
||||
# Report a 404 error
|
||||
self.send_response(404)
|
||||
response = 'No such page'
|
||||
response = b'No such page'
|
||||
self.send_header("Content-type", "text/plain")
|
||||
self.send_header("Content-length", str(len(response)))
|
||||
self.end_headers()
|
||||
|
|
|
@ -424,7 +424,7 @@ def test_non_existing_multicall(self):
|
|||
|
||||
self.assertEqual(result.results[0]['faultCode'], 1)
|
||||
self.assertEqual(result.results[0]['faultString'],
|
||||
'<type \'exceptions.Exception\'>:method "this_is_not_exists" '
|
||||
'<type \'Exception\'>:method "this_is_not_exists" '
|
||||
'is not supported')
|
||||
except xmlrpclib.ProtocolError as e:
|
||||
# ignore failures due to non-blocking socket 'unavailable' errors
|
||||
|
|
Loading…
Reference in a new issue