mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-24 23:13:10 +03:00
update "unknown version" deprecation test
This commit is contained in:
parent
35463e8ca3
commit
62ab8bf80c
|
@ -29,7 +29,7 @@ def test_version(version, expected):
|
||||||
|
|
||||||
|
|
||||||
def test_unknown_version():
|
def test_unknown_version():
|
||||||
expected = r"Unknown removal version, update PIL\._deprecate\?"
|
expected = r"Unknown removal version: 12345. Update PIL\._deprecate\?"
|
||||||
with pytest.raises(ValueError, match=expected):
|
with pytest.raises(ValueError, match=expected):
|
||||||
_deprecate.deprecate("Old thing", 12345, "new thing")
|
_deprecate.deprecate("Old thing", 12345, "new thing")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user