mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
fix deprecation test
This commit is contained in:
parent
c87c2cf5b3
commit
ab86bdda0a
|
@ -981,8 +981,8 @@ class TestImageFont:
|
|||
font = self.get_font()
|
||||
with pytest.warns(DeprecationWarning):
|
||||
font.getmask2("Hello world", fill=Image.core.fill)
|
||||
with pytest.raises(TypeError):
|
||||
with pytest.warns(DeprecationWarning):
|
||||
with pytest.warns(DeprecationWarning):
|
||||
with pytest.raises(TypeError):
|
||||
font.getmask2("Hello world", fill=None)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user