Exemple #1
0
 def test_raise_ioerror(self):
     self.assertRaises(IOError, lambda: ImageFile.raise_ioerror(1))
Exemple #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
Exemple #3
0
 def test_raise_ioerror(self):
     with pytest.raises(IOError):
         ImageFile.raise_ioerror(1)
Exemple #4
0
 def test_raise_ioerror(self):
     self.assertRaises(IOError, lambda: ImageFile.raise_ioerror(1))
Exemple #5
0
 def test_raise_ioerror(self):
     with pytest.raises(IOError):
         with pytest.raises(DeprecationWarning):
             ImageFile.raise_ioerror(1)