]> granicus.if.org Git - python/commitdiff
Remove extra copy of test_key_with_exception that somehow appeared
authorMichael W. Hudson <mwh@python.net>
Thu, 4 Dec 2003 11:41:24 +0000 (11:41 +0000)
committerMichael W. Hudson <mwh@python.net>
Thu, 4 Dec 2003 11:41:24 +0000 (11:41 +0000)
during a CVS merge.

Lib/test/test_sort.py

index 74f3bb565f6b2350ac65a2d212baec33f87d16c5..667c9cebda1eab779bf8cb0393c00dbd6b3238f1 100644 (file)
@@ -231,13 +231,6 @@ class TestDecorateSortUndecorate(unittest.TestCase):
         ## .sort() and so the list protection gimmicks are out of
         ## date (this cost some brain cells to figure out...).
 
-    def test_key_with_exception(self):
-        # Verify that the wrapper has been removed
-        data = range(-2,2)
-        dup = data[:]
-        self.assertRaises(ZeroDivisionError, data.sort, None, lambda x: 1/x)
-        self.assertEqual(data, dup)
-
     def test_reverse(self):
         data = range(100)
         random.shuffle(data)