mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Added SGI test for saving an image in an unsupported mode
This commit is contained in:
parent
e0f69cb2e1
commit
e4927b8f2f
|
@ -55,6 +55,12 @@ class TestFileSgi(PillowTestCase):
|
|||
for mode in ('L', 'RGB', 'RGBA'):
|
||||
roundtrip(hopper(mode))
|
||||
|
||||
def test_unsupported_mode(self):
|
||||
im = hopper('LA')
|
||||
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