Author: phd
Date: 2007-09-24 09:01:00 -0600 (Mon, 24 Sep 2007)
New Revision: 2982
Modified:
SQLObject/trunk/sqlobject/tests/test_select.py
Log:
Python 2.3 has sum().
Modified: SQLObject/trunk/sqlobject/tests/test_select.py
===================================================================
--- SQLObject/trunk/sqlobject/tests/test_select.py 2007-09-22 02:21:43 UTC (rev 2981)
+++ SQLObject/trunk/sqlobject/tests/test_select.py 2007-09-24 15:01:00 UTC (rev 2982)
@@ -133,14 +133,6 @@
assert func([c.n1 for c in counters]) == value
def test_1(self):
- try:
- sum
- except NameError:
- def sum(sequence):
- s = 0
- for item in sequence:
- s = s + item
- return s
self.accumulateEqual(sum,Counter2.select(orderBy='n1'),
sum(range(10)) * 10)
|