Trigger set_as_raw error

This commit is contained in:
wiredfool 2017-03-11 16:30:28 +00:00
parent 31c1a651a3
commit 382833061e

View File

@ -174,6 +174,7 @@ class TestPyDecoder(PillowTestCase):
self.assertEqual(d.state.xsize, xsize)
self.assertEqual(d.state.ysize, ysize)
self.assertRaises(ValueError, lambda: d.set_as_raw(b'\x00'))
def test_negsize(self):
buf = BytesIO(b'\x00'*255)