mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +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'))
|
||||
|
||||
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__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user