summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-08 13:30:12 +0200
committerGitHub <noreply@github.com>2022-07-08 13:30:12 +0200
commiteb3699ea775548a22e0407ad12bf8cbdeaf95ff5 (patch)
treebed4fed56dfc92b6808de048d1c2b6132d064ed4 /tests/gis_tests
parentccbf714ebeff51d1370789e5e487a978d0e2dbfb (diff)
downloaddjango-eb3699ea775548a22e0407ad12bf8cbdeaf95ff5.tar.gz
Fixed #33718 -- Dropped support for MySQL 5.7.
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/geoapp/tests.py5
1 files changed, 1 insertions, 4 deletions
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