mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-20 21:13:23 +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'):
|
for mode in ('L', 'RGB', 'RGBA'):
|
||||||
roundtrip(hopper(mode))
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user