diff --git a/test/test_utils.py b/test/test_utils.py index 57f3e13dc..d047c19d7 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -145,9 +145,7 @@ class GenTest(SupyTestCase): L = ['a', 'c', 'b'] self.assertEqual(sorted(L), ['a', 'b', 'c']) self.assertEqual(L, ['a', 'c', 'b']) - def mycmp(x, y): - return -cmp(x, y) - self.assertEqual(sorted(L, mycmp), ['c', 'b', 'a']) + self.assertEqual(sorted(L, reverse=True), ['c', 'b', 'a']) def testTimeElapsed(self): self.assertRaises(ValueError, utils.timeElapsed, 0,