def test_multipoint_array_interface_deprecated(): geom = MultiPoint(((1.0, 2.0), (3.0, 4.0))) with pytest.warns(ShapelyDeprecationWarning, match="array_interface"): geom.array_interface()