diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py index ab809b6630..d1496a3b3e 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -1051,8 +1051,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)