Skip to content

Accept VRTUnsupportedError in resample-alg rejection test#2378

Merged
brendancol merged 1 commit into
mainfrom
fix-vrt-unsupported-resample-alg-test
May 25, 2026
Merged

Accept VRTUnsupportedError in resample-alg rejection test#2378
brendancol merged 1 commit into
mainfrom
fix-vrt-unsupported-resample-alg-test

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

Summary

Test plan

  • pytest xrspatial/geotiff/tests/test_vrt_unsupported_2370.py -- 15 passed, 2 xfailed (pre-existing PR1 dependency markers).
  • CI green on this PR.

The centralised VRT capability validator (#2329, merged via #2376)
raises VRTUnsupportedError at parse time before the legacy
NotImplementedError site at the resample call. The parametrised
test_unsupported_resample_alg_raises was still asserting only
NotImplementedError, so it started failing on main once both PRs
landed.

Broaden the expected exception type to (NotImplementedError,
ValueError) so the test passes whichever rejection path fires first.
VRTUnsupportedError subclasses ValueError, and the algorithm-name
assertion still locks the actionable-message contract.

Matches the dual-type rejection already documented in the sister
test_unsupported_resample_alg_open_geotiff.
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label May 25, 2026
@brendancol brendancol merged commit 1896d63 into main May 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance PR touches performance-sensitive code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant