Skip to content

Commit 270bc4f

Browse files
committed
Don't show own deprecation warning in test logs
1 parent f83f197 commit 270bc4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/test_imagefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_safeblock(self):
9595

9696
def test_raise_ioerror(self):
9797
with pytest.raises(IOError):
98-
with pytest.raises(DeprecationWarning):
98+
with pytest.warns(DeprecationWarning):
9999
ImageFile.raise_ioerror(1)
100100

101101
def test_raise_oserror(self):

0 commit comments

Comments
 (0)