mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Fixed test_optimize_full_l gif file test case.
This commit is contained in:
parent
9604cf814b
commit
78081a2498
|
@ -35,12 +35,12 @@ class TestFileGif(PillowTestCase):
|
||||||
self.assertEqual(test(0), 800)
|
self.assertEqual(test(0), 800)
|
||||||
self.assertEqual(test(1), 38)
|
self.assertEqual(test(1), 38)
|
||||||
|
|
||||||
def test_optimize_full_L(self):
|
def test_optimize_full_l(self):
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
im = Image.frombytes("L", (16, 16), bytes(range(256)))
|
im = Image.frombytes("L", (16, 16), bytes(range(256)))
|
||||||
file = BytesIO()
|
file = BytesIO()
|
||||||
im.save(file, "GIF", optimize=optimize)
|
im.save(file, "GIF", optimize=True)
|
||||||
self.assertEqual(im.mode, "L")
|
self.assertEqual(im.mode, "L")
|
||||||
|
|
||||||
def test_roundtrip(self):
|
def test_roundtrip(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user