fix deprecation test

This commit is contained in:
nulano 2022-04-17 16:02:51 +02:00
parent c87c2cf5b3
commit ab86bdda0a
No known key found for this signature in database
GPG Key ID: B650CDF63B705766

View File

@ -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.raises(TypeError):
font.getmask2("Hello world", fill=None)