[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-cvs
Subject: [Zope-Checkins] SVN:
From: Tres Seaver <tseaver () palladion ! com>
Date: 2008-10-27 17:57:33
Message-ID: 20081027175733.7C24939632 () cvs ! zope ! org
[Download RAW message or body]
Log message for revision 92621:
'any' and 'all' are not builtins in Python 2.4.
Changed:
U Zope/trunk/lib/python/AccessControl/tests/actual_python.py
-=-
Modified: Zope/trunk/lib/python/AccessControl/tests/actual_python.py
===================================================================
--- Zope/trunk/lib/python/AccessControl/tests/actual_python.py 2008-10-27 17:55:50 UTC (rev 92620)
+++ Zope/trunk/lib/python/AccessControl/tests/actual_python.py 2008-10-27 17:57:32 UTC (rev 92621)
@@ -164,13 +164,23 @@
f11()
def f12():
- assert all([True, True, True]) == True
- assert all([True, False, True]) == False
+ try:
+ all
+ except NameError:
+ pass # Python < 2.5
+ else:
+ assert all([True, True, True]) == True
+ assert all([True, False, True]) == False
f12()
def f13():
- assert any([True, True, True]) == True
- assert any([True, False, True]) == True
- assert any([False, False, False]) == False
+ try:
+ all
+ except NameError:
+ pass # Python < 2.5
+ else:
+ assert any([True, True, True]) == True
+ assert any([True, False, True]) == True
+ assert any([False, False, False]) == False
f13()
_______________________________________________
Zope-Checkins maillist - Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic