From 863aa7541d30247e7eb7a973ff68a7d36f16dc02 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 1 Jul 2022 19:05:27 +0200 Subject: [PATCH] Fixed GEOSTest.test_emptyCollections() on GEOS 3.8.0. It's a regression in GEOS 3.8.0 fixed in GEOS 3.8.1. --- tests/gis_tests/geos_tests/test_geos.py | 6 ++++-- 1 file 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)