  import re
  import unittest
  
  from django.contrib.gis.gdal import HAS_GDAL
  from django.db import connection
  from django.test import mock, skipUnlessDBFeature
  from django.utils import six
  
  from .utils import SpatialRefSys, oracle, postgis, spatialite
  
 
</s> remove from django.contrib.gis.db.backends.spatialite.base import DatabaseWrapper
from django.db import connection, models
from django.db.backends.signals import connection_created
 </s> add from django.db import models </s> remove http://www.gaia-gis.it/spatialite-3.0.0-BETA/spatialite-sql-3.0.0.html
 </s> add  </s> remove         if version < (3, 0, 0):
            raise ImproperlyConfigured('GeoDjango only supports SpatiaLite versions 3.0.0 and above.')
 </s> add         if version < (4, 0, 0):
            raise ImproperlyConfigured('GeoDjango only supports SpatiaLite versions 4.0.0 and above.') </s> remove                 # No `srtext` field in the `spatial_ref_sys` table in SpatiaLite < 4
                if not spatialite or connection.ops.spatial_version[0] >= 4:
                    self.assertTrue(srs.wkt.startswith(sd['srtext']))
 </s> add                 self.assertTrue(srs.wkt.startswith(sd['srtext']))
  import re
  import unittest
  
  from django.contrib.gis.gdal import HAS_GDAL

  from django.test import mock, skipUnlessDBFeature
  from django.utils import six
  
  from .utils import SpatialRefSys, oracle, postgis, spatialite
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #25645 -- Dropped support for SpatiaLite < 4.0. 
tests/gis_tests/test_spatialrefsys.py