  
  from django.contrib.gis import gdal
  from django.contrib.gis.gdal import HAS_GDAL
  from django.contrib.gis.geos import (
      HAS_GEOS, GeometryCollection, GEOSException, GEOSGeometry, GEOSIndexError,
      LinearRing, LineString, MultiLineString, MultiPoint, MultiPolygon, Point,
      Polygon, fromfile, fromstr, geos_version_info,
  )
  from django.contrib.gis.geos.base import GEOSBase
  from django.contrib.gis.shortcuts import numpy
  from django.test import mock
  from django.utils import six
 
</s> remove from django.contrib.gis.geos.error import GEOSIndexError
 </s> add  </s> remove from .error import GEOSException, GEOSIndexError  # NOQA
 </s> add from .error import GEOSException  # NOQA </s> remove from django.contrib.gis.geos.error import GEOSException, GEOSIndexError
 </s> add from django.contrib.gis.geos.error import GEOSException </s> remove from django.contrib.gis.geos.error import GEOSException, GEOSIndexError
 </s> add from django.contrib.gis.geos.error import GEOSException
    HAS_GEOS, GeometryCollection, GEOSException, GEOSGeometry, LinearRing,
    LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon,
    fromfile, fromstr, geos_version_info,
  
  from django.contrib.gis import gdal
  from django.contrib.gis.gdal import HAS_GDAL
  from django.contrib.gis.geos import (
    HAS_GEOS, GeometryCollection, GEOSException, GEOSGeometry, LinearRing,
    LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon,
    fromfile, fromstr, geos_version_info,
    HAS_GEOS, GeometryCollection, GEOSException, GEOSGeometry, LinearRing,
    LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon,
    fromfile, fromstr, geos_version_info,
    HAS_GEOS, GeometryCollection, GEOSException, GEOSGeometry, LinearRing,
    LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon,
    fromfile, fromstr, geos_version_info,
  )
  from django.contrib.gis.geos.base import GEOSBase
  from django.contrib.gis.shortcuts import numpy
  from django.test import mock
  from django.utils import six
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_geos.py