[Zope-Checkins] CVS: Packages/AccessControl/tests -
testZopeGuards.py:1.1.4.4
Tim Peters
tim.one at comcast.net
Mon Oct 18 13:19:37 EDT 2004
Update of /cvs-repository/Packages/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv23088/lib/python/AccessControl/tests
Modified Files:
Tag: Zope-2_7-branch
testZopeGuards.py
Log Message:
testListCreation(): sorted() became a builtin in 2.4, not a list method.
This fixes an error that occurred only under Python 2.4 (the test doesn't
try to use sorted() unless sys.version_info >= (2, 4)).
=== Packages/AccessControl/tests/testZopeGuards.py 1.1.4.3 => 1.1.4.4 ===
--- Packages/AccessControl/tests/testZopeGuards.py:1.1.4.3 Fri Jan 16 16:04:54 2004
+++ Packages/AccessControl/tests/testZopeGuards.py Mon Oct 18 13:19:36 2004
@@ -337,7 +337,7 @@
x = [3,2,1]
self.assertEquals(l(x), [3,2,1])
if sys.version_info >= (2, 4):
- self.assertEquals(l.sorted(x), [1,2,3])
+ self.assertEquals(sorted(x), [1,2,3])
class TestRestrictedPythonApply(GuardTestCase):
More information about the Zope-Checkins
mailing list