Don't show own deprecation warning in test logs

This commit is contained in:
Hugo 2020-04-19 13:59:40 +03:00
parent f83f19788b
commit 270bc4fc60

View File

@ -95,7 +95,7 @@ class TestImageFile:
def test_raise_ioerror(self):
with pytest.raises(IOError):
with pytest.raises(DeprecationWarning):
with pytest.warns(DeprecationWarning):
ImageFile.raise_ioerror(1)
def test_raise_oserror(self):