Skip to content

Conversation

@radarhere
Copy link
Member

@pytest.mark.parametrize(
"test_file,raises",
[
("Tests/images/timeout-c8efc3fded6426986ba867a399791bae544f59bc.psd", OSError),
("Tests/images/timeout-dedc7a4ebd856d79b4359bbcc79e8ef231ce38f6.psd", OSError),
],
)
def test_crashes(test_file: str, raises: type[Exception]) -> None:

Before #8039, raises might have also been set to UnidentifiedImageError,. Now, it is always the same, making it redundant.

@hugovk hugovk changed the title Simplified test code Simplify test code Jan 6, 2026
@hugovk hugovk merged commit 627d874 into python-pillow:main Jan 6, 2026
55 checks passed
@radarhere radarhere deleted the test branch January 6, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants