mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Added test case for gif image (mode L): optimization turned on, but not needed.
This commit is contained in:
parent
97e111d079
commit
9604cf814b
|
@ -35,6 +35,14 @@ class TestFileGif(PillowTestCase):
|
|||
self.assertEqual(test(0), 800)
|
||||
self.assertEqual(test(1), 38)
|
||||
|
||||
def test_optimize_full_L(self):
|
||||
from io import BytesIO
|
||||
|
||||
im = Image.frombytes("L", (16, 16), bytes(range(256)))
|
||||
file = BytesIO()
|
||||
im.save(file, "GIF", optimize=optimize)
|
||||
self.assertEqual(im.mode, "L")
|
||||
|
||||
def test_roundtrip(self):
|
||||
out = self.tempfile('temp.gif')
|
||||
im = lena()
|
||||
|
|
Loading…
Reference in New Issue
Block a user