From 7091801e046dc85dba2238ed4eaf0b3f62bcfc7f Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 18 Jun 2025 17:51:08 +0200 Subject: Fixed #36471 -- Added support for __coveredby GIS lookup and Collect, GeoHash, IsValid on MariaDB 12.0.1+. --- tests/gis_tests/relatedapp/tests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') 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): -- cgit v1.3