diff options
Diffstat (limited to 'test/dbus/result-types-test.py')
-rw-r--r-- | test/dbus/result-types-test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dbus/result-types-test.py b/test/dbus/result-types-test.py index 22fc30f9..f6fcc579 100644 --- a/test/dbus/result-types-test.py +++ b/test/dbus/result-types-test.py @@ -39,7 +39,7 @@ class ResultTypeTest(testutils.RemoteTestCase): events = self.getEventsAndWait(ids) sorted_event_ids = [ event.id for event in sorted(events, - cmp=lambda x, y: cmp(int(x.timestamp), int(y.timestamp)), + key=lambda x: x.timestamp, reverse=True ) ] @@ -55,7 +55,7 @@ class ResultTypeTest(testutils.RemoteTestCase): events = self.getEventsAndWait(ids) sorted_event_ids = [ event.id for event in sorted(events, - cmp=lambda x, y: cmp(int(x.timestamp), int(y.timestamp))) + key=lambda x: x.timestamp) ] self.assertEqual(list(ids), sorted_event_ids) |