From 5a434677a7ed5e37ff29987426f022b93736b941 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 14 Dec 2020 06:28:38 -0500 Subject: [PATCH] Relaxed MemSize test for CockroachDB. --- tests/gis_tests/geoapp/test_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index b518f9cb53..0c76aa9730 100644 --- a/tests/gis_tests/geoapp/test_functions.py +++ b/tests/gis_tests/geoapp/test_functions.py @@ -386,7 +386,8 @@ class GISFunctionsTests(FuncTestMixin, TestCase): @skipUnlessDBFeature("has_MemSize_function") def test_memsize(self): ptown = City.objects.annotate(size=functions.MemSize('point')).get(name='Pueblo') - self.assertTrue(20 <= ptown.size <= 40) # Exact value may depend on PostGIS version + # Exact value depends on database and version. + self.assertTrue(20 <= ptown.size <= 105) @skipUnlessDBFeature("has_NumGeom_function") def test_num_geom(self):