mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-06 14:13:15 +03:00
Added SGI test for an incorrect number of bands
This commit is contained in:
parent
e4927b8f2f
commit
667fff7862
|
@ -61,6 +61,13 @@ class TestFileSgi(PillowTestCase):
|
||||||
|
|
||||||
self.assertRaises(ValueError, lambda: im.save(out, format='sgi'))
|
self.assertRaises(ValueError, lambda: im.save(out, format='sgi'))
|
||||||
|
|
||||||
|
def test_incorrect_number_of_bands(self):
|
||||||
|
im = hopper('YCbCr')
|
||||||
|
im.mode = 'RGB'
|
||||||
|
out = self.tempfile('temp.sgi')
|
||||||
|
|
||||||
|
self.assertRaises(ValueError, lambda: im.save(out, format='sgi'))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user