mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
Tests for issue #2811
This commit is contained in:
parent
29c3373823
commit
fcabe1c08c
BIN
Tests/images/issue_2811.gif
Normal file
BIN
Tests/images/issue_2811.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user