Source: geojson-pydantic
Version: 0.5.0-2
Severity: serious
Tags: upstream
Justification: autopkgtest failure

Dear Maintainer,

The autopkgtest of your package fails with GEOS 3.12:

 33s =================================== FAILURES 
===================================
 33s _______________ test_multi_point_valid_coordinates[coordinates0] 
_______________
 33s 
 33s coordinates = [(1.0, 2.0)]
 33s 
 33s     @pytest.mark.parametrize(
 33s         "coordinates",
 33s         [
 33s             [(1.0, 2.0)],
 33s             [(1.0, 2.0), (1.0, 2.0)],
 33s             [(1.0, 2.0, 3.0), (1.0, 2.0, 3.0)],
 33s             [(1.0, 2.0), (1.0, 2.0)],
 33s         ],
 33s     )
 33s     def test_multi_point_valid_coordinates(coordinates):
 33s         """
 33s         Two or three number elements as coordinates shold be okay
 33s         """
 33s         p = MultiPoint(coordinates=coordinates)
 33s         assert p.type == "MultiPoint"
 33s         assert p.coordinates == coordinates
 33s         assert hasattr(p, "__geo_interface__")
 33s >       assert_wkt_equivalence(p)
 33s 
 33s tests/test_geometries.py:68: 
 33s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ 
 33s 
 33s geom = MultiPoint(type='MultiPoint', coordinates=[(1.0, 2.0)])
 33s 
 33s     def assert_wkt_equivalence(geom: Union[Geometry, GeometryCollection]):
 33s         """Assert WKT equivalence with Shapely."""
 33s         # Remove any trailing `.0` to match Shapely format
 33s         clean_wkt = re.sub(r"\.0(\D)", r"\1", geom.wkt)
 33s >       assert shape(geom.dict()).wkt == clean_wkt
 33s E       AssertionError: assert 'MULTIPOINT ((1 2))' == 'MULTIPOINT (1 2)'
 33s E         - MULTIPOINT (1 2)
 33s E         + MULTIPOINT ((1 2))
 33s E         ?            +     +
 33s 
 33s tests/test_geometries.py:25: AssertionError
 33s =========================== short test summary info 
============================
 33s FAILED 
tests/test_geometries.py::test_multi_point_valid_coordinates[coordinates0]
 33s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures 
!!!!!!!!!!!!!!!!!!!!!!!!!!!
 33s ========================= 1 failed, 21 passed in 0.30s 
=========================

https://ci.debian.net/data/autopkgtest/testing/amd64/g/geojson-pydantic/35907622/log.gz

Reply via email to