Skip to content

Conversation

@radarhere
Copy link
Member

def test_old_version(deprecated: str, plural: bool, expected: str) -> None:
expected = r""
with pytest.raises(RuntimeError, match=expected):
_deprecate.deprecate(deprecated, 1, plural=plural)

Somehow, this test managed to immediately discard the expected argument and set it to an empty string instead.

The code originated in #6184

@hugovk hugovk changed the title Fixed test Fix test Jun 4, 2025
@hugovk hugovk merged commit 1bf32ae into python-pillow:main Jun 4, 2025
72 of 73 checks passed
@radarhere radarhere deleted the deprecated branch June 4, 2025 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants