[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/tests/testZopeGuards.py Pass key as positional, rather than keyword, to get passing on 2.5.

Tres Seaver tseaver at palladion.com
Mon Oct 27 16:14:36 EDT 2008


Log message for revision 92629:
  Pass key as positional, rather than keyword, to get passing on 2.5.

Changed:
  U   Zope/trunk/lib/python/AccessControl/tests/testZopeGuards.py

-=-
Modified: Zope/trunk/lib/python/AccessControl/tests/testZopeGuards.py
===================================================================
--- Zope/trunk/lib/python/AccessControl/tests/testZopeGuards.py	2008-10-27 20:01:18 UTC (rev 92628)
+++ Zope/trunk/lib/python/AccessControl/tests/testZopeGuards.py	2008-10-27 20:14:36 UTC (rev 92629)
@@ -308,7 +308,7 @@
         self.assertRaises(Unauthorized, guarded_min, 1,2,3)
         if MIN_MAX_TAKE_KEY:
             self.assertRaises(Unauthorized, guarded_min,
-                              [{'x':1},{'x':2}], key=operator.itemgetter('x'))
+                              [{'x':1},{'x':2}], operator.itemgetter('x'))
         self.setSecurityManager(old)
 
     def test_max_fails(self):
@@ -320,7 +320,7 @@
         self.assertRaises(Unauthorized, guarded_max, 1,2,3)
         if MIN_MAX_TAKE_KEY:
             self.assertRaises(Unauthorized, guarded_max, 
-                            [{'x':1},{'x':2}], key=operator.itemgetter('x'))
+                            [{'x':1},{'x':2}], operator.itemgetter('x'))
         self.setSecurityManager(old)
 
     def test_enumerate_fails(self):



More information about the Zope-Checkins mailing list