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