Example #1
0
 def test_raise_ioerror(self):
     self.assertRaises(IOError, lambda: ImageFile.raise_ioerror(1))
Example #2
0
 def test_raise_ioerror(self):
     with pytest.raises(IOError):
         with pytest.warns(DeprecationWarning) as record:
             ImageFile.raise_ioerror(1)
     assert len(record) == 1
Example #3
0
 def test_raise_ioerror(self):
     with pytest.raises(IOError):
         ImageFile.raise_ioerror(1)
Example #4
0
 def test_raise_ioerror(self):
     self.assertRaises(IOError, lambda: ImageFile.raise_ioerror(1))
Example #5
0
 def test_raise_ioerror(self):
     with pytest.raises(IOError):
         with pytest.raises(DeprecationWarning):
             ImageFile.raise_ioerror(1)