Author: christian.heimes
Date: Sat Dec  8 19:38:20 2007
New Revision: 59429

Modified:
   python/branches/py3k/Lib/SimpleXMLRPCServer.py
   python/branches/py3k/Lib/test/test_xmlrpc.py
Log:
Fixed two of the three failing xml rpc tests

Modified: python/branches/py3k/Lib/SimpleXMLRPCServer.py
==============================================================================
--- python/branches/py3k/Lib/SimpleXMLRPCServer.py      (original)
+++ python/branches/py3k/Lib/SimpleXMLRPCServer.py      Sat Dec  8 19:38:20 2007
@@ -479,7 +479,7 @@
     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()

Modified: python/branches/py3k/Lib/test/test_xmlrpc.py
==============================================================================
--- python/branches/py3k/Lib/test/test_xmlrpc.py        (original)
+++ python/branches/py3k/Lib/test/test_xmlrpc.py        Sat Dec  8 19:38:20 2007
@@ -424,7 +424,7 @@
 
             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
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to