mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #4567 from hugovk/rm-warning
Don't show own deprecation warning in test logs
This commit is contained in:
commit
394f7a0449
|
@ -95,8 +95,9 @@ class TestImageFile:
|
|||
|
||||
def test_raise_ioerror(self):
|
||||
with pytest.raises(IOError):
|
||||
with pytest.raises(DeprecationWarning):
|
||||
with pytest.warns(DeprecationWarning) as record:
|
||||
ImageFile.raise_ioerror(1)
|
||||
assert len(record) == 1
|
||||
|
||||
def test_raise_oserror(self):
|
||||
with pytest.raises(OSError):
|
||||
|
|
Loading…
Reference in New Issue
Block a user