Skip to content

conv: Use NotImplementedError when no backends are available#12

Merged
tomba merged 1 commit into
masterfrom
fix-tests
May 21, 2026
Merged

conv: Use NotImplementedError when no backends are available#12
tomba merged 1 commit into
masterfrom
fix-tests

Conversation

@tomba

@tomba tomba commented May 21, 2026

Copy link
Copy Markdown
Owner

to_bgr888() raised ValueError when no requested backend was installed and NotImplementedError when an installed backend could not handle the format. Both mean "we can't convert this", so collapse them into one exception type. The tests that probe backends or skip on missing backends can now catch a single exception type instead of matching on the ValueError message string.

Fixes: #11

to_bgr888() raised ValueError when no requested backend was installed
and NotImplementedError when an installed backend could not handle the
format. Both mean "we can't convert this", so collapse them into one
exception type. The tests that probe backends or skip on missing
backends can now catch a single exception type instead of matching on
the ValueError message string.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
@tomba tomba merged commit 3bda54a into master May 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_backend_compat fails if one backend is not available

1 participant