mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Test fix for supported 32bit RGBA .cur file
Some .cur file with alpha was loaded fully opaque with PIL. Fixed, and fixed the test to take that into account.
This commit is contained in:
parent
613d22fc75
commit
514c55aa16
|
@ -16,9 +16,9 @@ class TestFileCur(PillowTestCase):
|
|||
self.assertEqual(im.size, (32, 32))
|
||||
self.assertIsInstance(im, CurImagePlugin.CurImageFile)
|
||||
# Check some pixel colors to ensure image is loaded properly
|
||||
self.assertEqual(im.getpixel((10, 1)), (0, 0, 0))
|
||||
self.assertEqual(im.getpixel((11, 1)), (253, 254, 254))
|
||||
self.assertEqual(im.getpixel((16, 16)), (84, 87, 86))
|
||||
self.assertEqual(im.getpixel((10, 1)), (0, 0, 0, 0))
|
||||
self.assertEqual(im.getpixel((11, 1)), (253, 254, 254, 1))
|
||||
self.assertEqual(im.getpixel((16, 16)), (84, 87, 86, 255))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user