|
@@ -246,10 +246,9 @@ class GISFunctionsTests(TestCase):
|
|
|
|
|
|
qs = City.objects.filter(point__isnull=False).annotate(num_geom=functions.NumGeometries('point'))
|
|
|
for city in qs:
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- if (postgis and connection.ops.spatial_version < (2, 0, 0)) or mysql:
|
|
|
+
|
|
|
+
|
|
|
+ if mysql:
|
|
|
self.assertIsNone(city.num_geom)
|
|
|
else:
|
|
|
self.assertEqual(1, city.num_geom)
|