mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Compare to a Hopper image with a similar XV palette
This commit is contained in:
parent
a03a6e2049
commit
3e6d867ae8
|
@ -13,7 +13,10 @@ class TestFileXVThumb(PillowTestCase):
|
|||
|
||||
# Assert
|
||||
self.assertEqual(im.format, "XVThumb")
|
||||
self.assert_image_similar(im, hopper("P"), 49)
|
||||
|
||||
# Create a Hopper image with a similar XV palette
|
||||
im_hopper = hopper().quantize(palette=im)
|
||||
self.assert_image_similar(im, im_hopper, 9)
|
||||
|
||||
def test_unexpected_eof(self):
|
||||
# Test unexpected EOF reading XV thumbnail file
|
||||
|
|
Loading…
Reference in New Issue
Block a user