mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 11:26:27 +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):
|
def test_raise_ioerror(self):
|
||||||
with pytest.raises(IOError):
|
with pytest.raises(IOError):
|
||||||
with pytest.raises(DeprecationWarning):
|
with pytest.warns(DeprecationWarning) as record:
|
||||||
ImageFile.raise_ioerror(1)
|
ImageFile.raise_ioerror(1)
|
||||||
|
assert len(record) == 1
|
||||||
|
|
||||||
def test_raise_oserror(self):
|
def test_raise_oserror(self):
|
||||||
with pytest.raises(OSError):
|
with pytest.raises(OSError):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user