コード例 #1
0
ファイル: test_imagefile.py プロジェクト: olt/Pillow
 def test_raise_ioerror(self):
     self.assertRaises(IOError, lambda: ImageFile.raise_ioerror(1))
コード例 #2
0
ファイル: test_imagefile.py プロジェクト: chris34/pillow
 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
ファイル: test_imagefile.py プロジェクト: whiteHat001/Pillow
 def test_raise_ioerror(self):
     with pytest.raises(IOError):
         ImageFile.raise_ioerror(1)
コード例 #4
0
ファイル: test_imagefile.py プロジェクト: a3104/pillow-simd
 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)