We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 270bc4f commit a0641b8Copy full SHA for a0641b8
1 file changed
Tests/test_imagefile.py
@@ -95,8 +95,9 @@ def test_safeblock(self):
95
96
def test_raise_ioerror(self):
97
with pytest.raises(IOError):
98
- with pytest.warns(DeprecationWarning):
+ with pytest.warns(DeprecationWarning) as record:
99
ImageFile.raise_ioerror(1)
100
+ assert len(record) == 1
101
102
def test_raise_oserror(self):
103
with pytest.raises(OSError):
0 commit comments