summaryrefslogtreecommitdiff
path: root/tests/gis_tests/relatedapp/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gis_tests/relatedapp/tests.py')
-rw-r--r--tests/gis_tests/relatedapp/tests.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/gis_tests/relatedapp/tests.py b/tests/gis_tests/relatedapp/tests.py
index 303d357705..2db635b0c0 100644
--- a/tests/gis_tests/relatedapp/tests.py
+++ b/tests/gis_tests/relatedapp/tests.py
@@ -346,9 +346,12 @@ class RelatedGeoModelTest(TestCase):
)
)
city = qs.get(name="Aurora")
- self.assertIsInstance(city.parcel_centroid, Point)
- self.assertAlmostEqual(city.parcel_centroid[0], 3.2128, 4)
- self.assertAlmostEqual(city.parcel_centroid[1], 1.5, 4)
+ if connection.ops.mariadb:
+ self.assertIsNone(city.parcel_centroid)
+ else:
+ self.assertIsInstance(city.parcel_centroid, Point)
+ self.assertAlmostEqual(city.parcel_centroid[0], 3.2128, 4)
+ self.assertAlmostEqual(city.parcel_centroid[1], 1.5, 4)
@skipUnlessDBFeature("supports_make_line_aggr")
def test_make_line_filter(self):