From 35800acf79acf637f9afab17f60ad7ec4aacb9ce Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Fri, 1 Sep 2017 13:58:10 +0100 Subject: [PATCH] Refs #25225 -- Removed test for removed ListMixin._IndexError. Unused since 197b1878105504b5ac7e399e1f52a6093c88baa3. --- tests/gis_tests/geos_tests/test_mutable_list.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/gis_tests/geos_tests/test_mutable_list.py b/tests/gis_tests/geos_tests/test_mutable_list.py index 4e6a44223d..1e51a19985 100644 --- a/tests/gis_tests/geos_tests/test_mutable_list.py +++ b/tests/gis_tests/geos_tests/test_mutable_list.py @@ -419,13 +419,6 @@ class ListMixinTest(unittest.TestCase): self.assertLess(ul, pl + [2], 'cmp') self.assertLessEqual(ul, pl + [2], 'cmp') - # Also works with a custom IndexError - ul_longer = ul + [2] - ul_longer._IndexError = TypeError - ul._IndexError = TypeError - self.assertNotEqual(ul_longer, pl) - self.assertGreater(ul_longer, ul) - pl[1] = 20 self.assertGreater(pl, ul, 'cmp for gt self') self.assertLess(ul, pl, 'cmp for self lt')