diff --git a/test/test_indexer.py b/test/test_indexer.py
index 4a3369e7fa4c9f154d1d8167f816370ea3ff618d..319536d609c3198d1ebb906f8f85df80504ff8d5 100644 (file)
--- a/test/test_indexer.py
+++ b/test/test_indexer.py
self.dex.load_index()
def assertSeqEqual(self, s1, s2):
- # first argument is the db result we're testing, second is the
- # desired result some db results don't have iterable rows, so we
- # have to work around that
+ # First argument is the db result we're testing, second is the
+ # desired result. Some db results don't have iterable rows, so we
+ # have to work around that.
# Also work around some dbs not returning items in the expected
- # order. This would be *so* much easier with python2.4's sorted.
- s1 = list(s1)
+ # order.
+ s1 = list([tuple([r[n] for n in range(len(r))]) for r in s1])
s1.sort()
- if [i for x,y in zip(s1, s2) for i,j in enumerate(y) if x[i] != j]:
+ if s1 != s2:
self.fail('contents of %r != %r'%(s1, s2))
def test_basics(self):