summaryrefslogtreecommitdiffstats
path: root/Lib/test/list_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/list_tests.py')
-rw-r--r--Lib/test/list_tests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py
index 9168cfc..e4254ef 100644
--- a/Lib/test/list_tests.py
+++ b/Lib/test/list_tests.py
@@ -36,7 +36,7 @@ class CommonTest(seq_tests.CommonTest):
self.assertEqual(str(a0), str(l0))
self.assertEqual(repr(a0), repr(l0))
- self.assertEqual(`a2`, `l2`)
+ self.assertEqual(repr(a2), repr(l2))
self.assertEqual(str(a2), "[0, 1, 2]")
self.assertEqual(repr(a2), "[0, 1, 2]")
@@ -419,6 +419,11 @@ class CommonTest(seq_tests.CommonTest):
self.assertRaises(TypeError, u.reverse, 42)
def test_sort(self):
+ with test_support._check_py3k_warnings(
+ ("the cmp argument is not supported", DeprecationWarning)):
+ self._test_sort()
+
+ def _test_sort(self):
u = self.type2test([1, 0])
u.sort()
self.assertEqual(u, [0, 1])