Log message for revision 98860:
  Suppress test failure due to changes in Python 2.6's xmlrpclib.

Changed:
  U   Zope/trunk/src/ZPublisher/tests/test_xmlrpc.py

-=-
Modified: Zope/trunk/src/ZPublisher/tests/test_xmlrpc.py
===================================================================
--- Zope/trunk/src/ZPublisher/tests/test_xmlrpc.py      2009-04-04 16:21:44 UTC 
(rev 98859)
+++ Zope/trunk/src/ZPublisher/tests/test_xmlrpc.py      2009-04-04 16:25:43 UTC 
(rev 98860)
@@ -183,13 +183,18 @@
 
     def test_functionattribute(self):
         # Cannot marshal functions or methods, obviously
+        import sys
         import xmlrpclib
         def foo(): pass
         body = FauxInstance(public=foo)
         faux = FauxResponse()
         response = self._makeOne(faux)
         response.setBody(body)
-        self.assertRaises(xmlrpclib.Fault, xmlrpclib.loads, faux._body)
+        if sys.version_info < (2, 6):
+            self.assertRaises(xmlrpclib.Fault, xmlrpclib.loads, faux._body)
+        else:
+            func = xmlrpclib.loads(faux._body)
+            self.assertEqual(func, (({'public': {}},), None))
 
     def test_emptystringattribute(self):
         # Test an edge case: attribute name '' is possible,

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to