mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Test passing in an I mode image
This commit is contained in:
parent
b7689627e8
commit
6559674032
|
@ -478,5 +478,17 @@ class TestFileGif(PillowTestCase):
|
||||||
im.putpalette(palette)
|
im.putpalette(palette)
|
||||||
self.assert_image_equal(reloaded, im)
|
self.assert_image_equal(reloaded, im)
|
||||||
|
|
||||||
|
def test_save_I(self):
|
||||||
|
# Test saving something that would trigger the auto-convert to 'L'
|
||||||
|
|
||||||
|
im = hopper('I')
|
||||||
|
|
||||||
|
out = self.tempfile('temp.gif')
|
||||||
|
im.save(out)
|
||||||
|
|
||||||
|
reloaded = Image.open(out)
|
||||||
|
self.assert_image_equal(reloaded.convert('L'), im.convert('L'))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user