  
          for i in (-self.limit - 1, self.limit):
              self.assertRaises(IndexError, ul._checkindex, i)
  
          ul._IndexError = TypeError
          self.assertRaises(TypeError, ul._checkindex, -self.limit - 1)
  
      def test_11_sorting(self):
          'Sorting'
          pl, ul = self.lists_of_len()
          pl.insert(0, pl.pop())
          ul.insert(0, ul.pop())
 
</s> remove             self.assertRaises(GEOSIndexError, poly.__getitem__, len(poly))
            self.assertRaises(GEOSIndexError, poly.__setitem__, len(poly), False)
            self.assertRaises(GEOSIndexError, poly.__getitem__, -1 * len(poly) - 1)
 </s> add             self.assertRaises(IndexError, poly.__getitem__, len(poly))
            self.assertRaises(IndexError, poly.__setitem__, len(poly), False)
            self.assertRaises(IndexError, poly.__getitem__, -1 * len(poly) - 1) </s> remove         self.assertRaises(GEOSIndexError, p._checkindex, 2)
        self.assertRaises(GEOSIndexError, p._checkindex, -3)
 </s> add         self.assertRaises(IndexError, p._checkindex, 2)
        self.assertRaises(IndexError, p._checkindex, -3) </s> remove             except self._IndexError:
 </s> add             except IndexError: </s> remove             except self._IndexError:
 </s> add             except IndexError: </s> remove             self.assertRaises(GEOSIndexError, ml.__getitem__, len(ml))
 </s> add             self.assertRaises(IndexError, ml.__getitem__, len(ml))
  
          for i in (-self.limit - 1, self.limit):
              self.assertRaises(IndexError, ul._checkindex, i)
  



      def test_11_sorting(self):
          'Sorting'
          pl, ul = self.lists_of_len()
          pl.insert(0, pl.pop())
          ul.insert(0, ul.pop())
keep keep keep keep replace replace replace keep keep keep keep keep
 Fixed #25225 -- Simplified code to remove GEOSIndexError

The test is a regression for refs #4740 to show that the original
fix of GEOSIndexError is no longer needed. 
tests/gis_tests/geos_tests/test_mutable_list.py