      get/set/delitem on a slice, normal list methods
      """
  
      def test00_GEOSIndexException(self):
          'Testing Geometry GEOSIndexError'
          p = Point(1, 2)
          for i in range(-2, 2):
              p._checkindex(i)
          self.assertRaises(GEOSIndexError, p._checkindex, 2)
          self.assertRaises(GEOSIndexError, p._checkindex, -3)
 
</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     _IndexError = IndexError
 </s> add  </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     def __iter__(self):
        "Iterate over the items in the list"
        for i in range(len(self)):
            yield self[i]

 </s> add  </s> remove             self.assertRaises(GEOSIndexError, mpnt.__getitem__, len(mpnt))
 </s> add             self.assertRaises(IndexError, mpnt.__getitem__, len(mpnt))
        'Testing Geometry IndexError'
      get/set/delitem on a slice, normal list methods
      """
  
      def test00_GEOSIndexException(self):
        'Testing Geometry IndexError'
          p = Point(1, 2)
          for i in range(-2, 2):
              p._checkindex(i)
          self.assertRaises(GEOSIndexError, p._checkindex, 2)
          self.assertRaises(GEOSIndexError, p._checkindex, -3)
keep keep keep keep 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_geos_mutation.py