Fixed test_optimize_full_l gif file test case.

This commit is contained in:
Nikita Uvarov 2014-08-19 12:32:52 +03:00
parent 9604cf814b
commit 78081a2498

View File

@ -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):