Skip to content

Commit 3e45fbd

Browse files
author
Richard Jones
committed
py2.1?!? test fix
1 parent 68e68bf commit 3e45fbd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/db_test_base.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: db_test_base.py,v 1.27.2.12 2004-11-05 05:11:25 richard Exp $
18+
# $Id: db_test_base.py,v 1.27.2.13 2004-11-26 00:00:32 richard Exp $
1919

2020
import unittest, os, shutil, errno, imp, sys, time, pprint
2121

@@ -763,10 +763,12 @@ def testFindLinkUnset(self):
763763

764764
def testFindMultipleLink(self):
765765
one, two, three, four = self._find_test_setup()
766-
self.assertEqual(self.db.issue.find(status={'1':1, '3':1}),
767-
[one, three, four])
768-
self.assertEqual(self.db.issue.find(assignedto={None:1, '1':1}),
769-
[one, three, four])
766+
l = self.db.issue.find(status={'1':1, '3':1})
767+
l.sort()
768+
self.assertEqual(l, [one, three, four])
769+
l = self.db.issue.find(assignedto={None:1, '1':1})
770+
l.sort()
771+
self.assertEqual(l, [one, three, four])
770772

771773
def testFindMultilink(self):
772774
one, two, three, four = self._find_test_setup()

0 commit comments

Comments
 (0)