Skip to content

Commit 5fd5e9c

Browse files
committed
test: fix tests python3 can't sort dict.
Was getting TypeError: '<' not supported between instances of 'dict' and 'dict' on some result.sort() where result was a dict on windows. Not sure why it wasn't happening on Linux but I don't see any requirement to sort the dicts to make the test pass. Possibly sort() was a copy/paste from an earlier test where a list or something was returned.
1 parent a6a03d6 commit 5fd5e9c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/db_test_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,6 @@ def testQuietJournal(self):
12591259
expected = {'nosy': (('+', ['1']), ('-', ['3'])),
12601260
'deadline': date.Date("2016-07-30.22:39:00.000")}
12611261

1262-
result.sort()
12631262
print("result unquiet", result)
12641263
(id, tx_date, user, action, args) = result[-1]
12651264
# check piecewise
@@ -1304,7 +1303,6 @@ def testQuietJournal(self):
13041303
# Verify last journal entry as admin is a role change
13051304
# from None
13061305
result=self.db.user.history(new_user, skipquiet=False)
1307-
result.sort()
13081306
''' result should end like:
13091307
[ ...
13101308
('3', <Date 2017-04-15.02:06:11.482>, '1', 'set',

0 commit comments

Comments
 (0)