mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #25645 -- Dropped support for SpatiaLite < 4.0.
This commit is contained in:
@@ -2,7 +2,6 @@ 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
|
||||
|
||||
@@ -110,9 +109,7 @@ class SpatialRefSysTest(unittest.TestCase):
|
||||
if postgis or spatialite:
|
||||
srs = sr.srs
|
||||
six.assertRegex(self, srs.proj4, sd['proj4_re'])
|
||||
# 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']))
|
||||
self.assertTrue(srs.wkt.startswith(sd['srtext']))
|
||||
|
||||
def test_ellipsoid(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user