Fix tests for GEOS main (pygeos/pygeos#419)
@@ -582,9 +582,11 @@ def test_set_precision_grid_size_nan():
pytest.param(
pygeos.Geometry("LINEARRING (0 0, 0.1 0, 0.1 0.1, 0 0.1, 0 0)"),
"keep_collapsed",
- pygeos.Geometry("LINEARRING (0 0, 0 0, 0 0, 0 0, 0 0)"),
+ # See https://trac.osgeo.org/geos/ticket/1135#comment:5
+ pygeos.Geometry("LINESTRING (0 0, 0 0, 0 0)"),
marks=pytest.mark.skipif(
- pygeos.geos_version == (3, 10, 0), reason="GEOS 3.10.0"
+ pygeos.geos_version < (3, 10, 0),
+ reason="this collapsed into an invalid linearring pre-GEOS 3.10",
),
),
(
