[4.0.x] Fixed GEOSTest.test_emptyCollections() on GEOS 3.8.0.
It's a regression in GEOS 3.8.0 fixed in GEOS 3.8.1. Backport of 863aa7541d30247e7eb7a973ff68a7d36f16dc02 from main
This commit is contained in:
parent
4d20d2f7c2
commit
2b901c1be4
@ -1120,6 +1120,8 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
|
||||
|
||||
# Testing __getitem__ (doesn't work on Point or Polygon)
|
||||
if isinstance(g, Point):
|
||||
# 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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user