                  lr = g.shell
                  self.assertEqual('LINEARRING EMPTY', lr.wkt)
                  self.assertEqual(0, len(lr))
                  self.assertEqual(True, lr.empty)
                  self.assertRaises(GEOSIndexError, lr.__getitem__, 0)
              else:
                  self.assertRaises(GEOSIndexError, g.__getitem__, 0)
  
      def test_collections_of_collections(self):
          "Testing GeometryCollection handling of other collections."
 
</s> remove                 self.assertRaises(GEOSIndexError, g.__getitem__, 0)
 </s> add                 self.assertRaises(IndexError, g.__getitem__, 0) </s> remove                 self.assertRaises(GEOSIndexError, g.get_x)
 </s> add                 self.assertRaises(IndexError, g.get_x) </s> remove             self.assertRaises(GEOSIndexError, mpnt.__getitem__, len(mpnt))
 </s> add             self.assertRaises(IndexError, mpnt.__getitem__, len(mpnt)) </s> remove             self.assertRaises(GEOSIndexError, ml.__getitem__, len(ml))
 </s> add             self.assertRaises(IndexError, ml.__getitem__, len(ml)) </s> remove             raise GEOSIndexError('invalid GEOS Geometry index: %s' % str(index))
 </s> add             raise IndexError('invalid GEOS Geometry index: %s' % str(index))
                self.assertRaises(IndexError, lr.__getitem__, 0)
                  lr = g.shell
                  self.assertEqual('LINEARRING EMPTY', lr.wkt)
                  self.assertEqual(0, len(lr))
                  self.assertEqual(True, lr.empty)
                self.assertRaises(IndexError, lr.__getitem__, 0)
              else:
                  self.assertRaises(GEOSIndexError, g.__getitem__, 0)
  
      def test_collections_of_collections(self):
          "Testing GeometryCollection handling of other collections."
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