From 64958a15d7c03efdc3d2eddf247666e18d1fd910 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 17 Dec 2003 20:43:33 +0000 Subject: Guido grants a Christmas wish: sorted() becomes a regular function instead of a classmethod. --- Lib/test/test_operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_operator.py') diff --git a/Lib/test/test_operator.py b/Lib/test/test_operator.py index e3a67f0d6d9..3263db20bed 100644 --- a/Lib/test/test_operator.py +++ b/Lib/test/test_operator.py @@ -263,7 +263,7 @@ class OperatorTestCase(unittest.TestCase): inventory = [('apple', 3), ('banana', 2), ('pear', 5), ('orange', 1)] getcount = operator.itemgetter(1) self.assertEqual(map(getcount, inventory), [3, 2, 5, 1]) - self.assertEqual(list.sorted(inventory, key=getcount), + self.assertEqual(sorted(inventory, key=getcount), [('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)]) def test_main(): -- cgit v1.2.3