  
              self.assertAlmostEqual(mp.centroid[0], mpnt.centroid.tuple[0], 9)
              self.assertAlmostEqual(mp.centroid[1], mpnt.centroid.tuple[1], 9)
  
              self.assertRaises(GEOSIndexError, mpnt.__getitem__, len(mpnt))
              self.assertEqual(mp.centroid, mpnt.centroid.tuple)
              self.assertEqual(mp.coords, tuple(m.tuple for m in mpnt))
              for p in mpnt:
                  self.assertEqual(p.geom_type, 'Point')
                  self.assertEqual(p.geom_typeid, 0)
 
</s> remove                 self.assertRaises(GEOSIndexError, mpoly.__getitem__, len(mpoly))
 </s> add                 self.assertRaises(IndexError, mpoly.__getitem__, len(mpoly)) </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                 self.assertRaises(GEOSIndexError, lr.__getitem__, 0)
 </s> add                 self.assertRaises(IndexError, lr.__getitem__, 0) </s> remove         'Testing Geometry GEOSIndexError'
 </s> add         'Testing Geometry IndexError' </s> remove                 self.assertRaises(GEOSIndexError, g.__getitem__, 0)
 </s> add                 self.assertRaises(IndexError, g.__getitem__, 0)
            self.assertRaises(IndexError, mpnt.__getitem__, len(mpnt))
  
              self.assertAlmostEqual(mp.centroid[0], mpnt.centroid.tuple[0], 9)
              self.assertAlmostEqual(mp.centroid[1], mpnt.centroid.tuple[1], 9)
  
            self.assertRaises(IndexError, mpnt.__getitem__, len(mpnt))
              self.assertEqual(mp.centroid, mpnt.centroid.tuple)
              self.assertEqual(mp.coords, tuple(m.tuple for m in mpnt))
              for p in mpnt:
                  self.assertEqual(p.geom_type, 'Point')
                  self.assertEqual(p.geom_typeid, 0)
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.py