Tests for issue #2811

This commit is contained in:
Eric Soroos 2017-10-25 13:52:33 +00:00
parent 29c3373823
commit fcabe1c08c
2 changed files with 7 additions and 0 deletions

BIN
Tests/images/issue_2811.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -536,6 +536,13 @@ class TestFileGif(PillowTestCase):
finally:
GifImagePlugin._FORCE_OPTIMIZE = False
def test_lzw_bits(self):
# see https://github.com/python-pillow/Pillow/issues/2811
im = Image.open('Tests/images/issue_2811.gif')
self.assertEqual(im.tile[0][3][0], 11) # LZW bits
# codec error prepatch
im.load()
if __name__ == '__main__':
unittest.main()