Skip to content

Commit

Permalink
Merge pull request #4567 from hugovk/rm-warning
Browse files Browse the repository at this point in the history
Don't show own deprecation warning in test logs
  • Loading branch information
radarhere committed Apr 21, 2020
2 parents a0d8e55 + 852e53e commit 394f7a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/test_imagefile.py
Expand Up @@ -95,8 +95,9 @@ def test_safeblock(self):

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):
Expand Down

0 comments on commit 394f7a0

Please sign in to comment.