summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-10-11 17:14:24 +0200
committerClaude Paroz <claude@2xlibre.net>2014-10-11 17:14:29 +0200
commitbc46e4d4fa61eead13fe58048ae646f07d632e4f (patch)
treefa9c8bcbe4ba132ecd11b94e03e5315302c5b7c8
parent63ff4177467fbcceedf9c87e9cab4ae31a4ce119 (diff)
Fixed two more tuple/int comparisons in gis tests
Refs 63ff417746.
-rw-r--r--django/contrib/gis/tests/geoapp/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/gis/tests/geoapp/tests.py b/django/contrib/gis/tests/geoapp/tests.py
index 4b4d4ddce8..d5a4cd541e 100644
--- a/django/contrib/gis/tests/geoapp/tests.py
+++ b/django/contrib/gis/tests/geoapp/tests.py
@@ -145,7 +145,7 @@ class GeoModelTest(TestCase):
# If the GeometryField SRID is -1, then we shouldn't perform any
# transformation if the SRID of the input geometry is different.
- if spatialite and connection.ops.spatial_version < 3:
+ if spatialite and connection.ops.spatial_version < (3, 0, 0):
# SpatiaLite < 3 does not support missing SRID values.
return
m1 = MinusOneSRID(geom=Point(17, 23, srid=4326))
@@ -269,7 +269,7 @@ class GeoLookupTest(TestCase):
self.assertEqual('New Zealand', nz.name)
# Spatialite 2.3 thinks that Lawrence is in Puerto Rico (a NULL geometry).
- if not (spatialite and connection.ops.spatial_version < 3):
+ if not (spatialite and connection.ops.spatial_version < (3, 0, 0)):
ks = State.objects.get(poly__contains=lawrence.point)
self.assertEqual('Kansas', ks.name)