From eb3699ea775548a22e0407ad12bf8cbdeaf95ff5 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 8 Jul 2022 13:30:12 +0200 Subject: Fixed #33718 -- Dropped support for MySQL 5.7. --- tests/gis_tests/geoapp/tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/gis_tests') diff --git a/tests/gis_tests/geoapp/tests.py b/tests/gis_tests/geoapp/tests.py index fd5fc3c793..8a86d4a2be 100644 --- a/tests/gis_tests/geoapp/tests.py +++ b/tests/gis_tests/geoapp/tests.py @@ -345,12 +345,9 @@ class GeoLookupTest(TestCase): invalid_geom = fromstr("POLYGON((0 0, 0 1, 1 1, 1 0, 1 1, 1 0, 0 0))") State.objects.create(name="invalid", poly=invalid_geom) qs = State.objects.all() - if connection.ops.oracle or ( - connection.ops.mysql and connection.mysql_version < (8, 0, 0) - ): + if connection.ops.oracle: # Kansas has adjacent vertices with distance 6.99244813842e-12 # which is smaller than the default Oracle tolerance. - # It's invalid on MySQL < 8 also. qs = qs.exclude(name="Kansas") self.assertEqual( State.objects.filter(name="Kansas", poly__isvalid=False).count(), 1 -- cgit v1.2.1