summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/geos_tests/test_geos.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py
index fd3f0b6ebd..f510b925ff 100644
--- a/tests/gis_tests/geos_tests/test_geos.py
+++ b/tests/gis_tests/geos_tests/test_geos.py
@@ -1127,8 +1127,10 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
# Testing __getitem__ (doesn't work on Point or Polygon)
if isinstance(g, Point):
- with self.assertRaises(IndexError):
- g.x
+ # IndexError is not raised in GEOS 3.8.0.
+ if geos_version_tuple() != (3, 8, 0):
+ with self.assertRaises(IndexError):
+ g.x
elif isinstance(g, Polygon):
lr = g.shell
self.assertEqual("LINEARRING EMPTY", lr.wkt)