                  self.assertEqual(ls.geom_type, 'LineString')
                  self.assertEqual(ls.geom_typeid, 1)
                  self.assertEqual(ls.empty, False)
  
              self.assertRaises(GEOSIndexError, ml.__getitem__, len(ml))
              self.assertEqual(ml.wkt, MultiLineString(*tuple(s.clone() for s in ml)).wkt)
              self.assertEqual(ml, MultiLineString(*tuple(LineString(s.tuple) for s in ml)))
  
      def test_linearring(self):
          "Testing LinearRing objects."
 
</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         ul._IndexError = TypeError
        self.assertRaises(TypeError, ul._checkindex, -self.limit - 1)

 </s> add  </s> remove                 self.assertRaises(GEOSIndexError, lr.__getitem__, 0)
 </s> add                 self.assertRaises(IndexError, lr.__getitem__, 0) </s> remove                 self.assertRaises(GEOSIndexError, g.__getitem__, 0)
 </s> add                 self.assertRaises(IndexError, g.__getitem__, 0) </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)
            self.assertRaises(IndexError, ml.__getitem__, len(ml))
                  self.assertEqual(ls.geom_type, 'LineString')
                  self.assertEqual(ls.geom_typeid, 1)
                  self.assertEqual(ls.empty, False)
  
            self.assertRaises(IndexError, ml.__getitem__, len(ml))
              self.assertEqual(ml.wkt, MultiLineString(*tuple(s.clone() for s in ml)).wkt)
              self.assertEqual(ml, MultiLineString(*tuple(LineString(s.tuple) for s in ml)))
  
      def test_linearring(self):
          "Testing LinearRing objects."
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