Repository navigation
[GH-3509] Compare GeoSeries scale/skew coordinates vertex by vertex - #3510
Merged
Merged
Conversation
…rtex
pytest 9.2.0 rejects nested sequences in pytest.approx ("does not support
nested data structures"), which broke test_scale_3d_explicit_origin,
test_skew_degrees_radians_and_180_degree_clamp and
test_skew_explicit_origins_ignore_z. Wrap each coordinate tuple in its own
approx instead, which behaves the same on pytest 9.1 and 9.2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Did you read the Contributor Guide?
Is this PR related to a ticket?
[GH-XXX] my subject. Closes GeoSeries scale and skew tests fail with pytest 9.2.0 #3509What changes were proposed in this PR?
pytest 9.2.0, released 2026-10-27, rejects nested sequences in
pytest.approx:python/pyproject.tomllistspytestwithout a version bound, so the Python build now resolves 9.2.0, and nine tests intests/geopandas/test_geoseries.pyfail:TestGeoSeries::test_scale_3d_explicit_origin(all four parameters)TestGeoSeries::test_skew_degrees_radians_and_180_degree_clampTestGeoSeries::test_skew_explicit_origins_ignore_z(all four parameters)Each of them compared a list of coordinate tuples with one
pytest.approx(expected). They now wrap each coordinate tuple in its own approx,[pytest.approx(c) for c in expected], which behaves the same on pytest 9.1 and 9.2. Only these tests change.How was this patch tested?
[(1, 4, 12)] == pytest.approx([(1, 4, 12)]). The same assertion passes on pytest 9.1.1.black26.5.1, the pre-commit pin, leaves the file unchanged.Did this PR include necessary documentation updates?