diff --git a/tests/gis_tests/geoapp/tests.py b/tests/gis_tests/geoapp/tests.py index 962d4f2217..7eb61eb8ef 100644 --- a/tests/gis_tests/geoapp/tests.py +++ b/tests/gis_tests/geoapp/tests.py @@ -578,7 +578,12 @@ class GeoLookupTest(TestCase): # Testing within relation mask. ks = State.objects.get(name="Kansas") self.assertEqual( - "Lawrence", City.objects.get(point__relate=(ks.poly, within_mask)).name + "Lawrence", + # Remove ".filter(name="Lawrence")" once PostGIS 3.5.4 is released. + # https://lists.osgeo.org/pipermail/postgis-devel/2025-July/030581.html + City.objects.filter(name="Lawrence") + .get(point__relate=(ks.poly, within_mask)) + .name, ) # Testing intersection relation mask.