Skip to content

Commit

Permalink
[4.0.x] Fixed GEOSTest.test_emptyCollections() on GEOS 3.8.0.
Browse files Browse the repository at this point in the history
It's a regression in GEOS 3.8.0 fixed in GEOS 3.8.1.
Backport of 863aa75 from main
  • Loading branch information
felixxm committed Jul 1, 2022
1 parent 4d20d2f commit 2b901c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/gis_tests/geos_tests/test_geos.py
Expand Up @@ -1120,8 +1120,10 @@ def test_emptyCollections(self):

# 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)
Expand Down

0 comments on commit 2b901c1

Please sign in to comment.