mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Test saving 256x256 icons
This commit is contained in:
parent
01392fcb2e
commit
4d6c2d5601
|
@ -48,6 +48,19 @@ class TestFileIco(PillowTestCase):
|
|||
self.assert_image_equal(reloaded,
|
||||
hopper().resize((32, 32), Image.LANCZOS))
|
||||
|
||||
def test_save_256x256(self):
|
||||
"""Issue #2264 https://github.com/python-pillow/Pillow/issues/2264"""
|
||||
# Arrange
|
||||
im = Image.open("Tests/images/hopper_256x256.ico")
|
||||
outfile = self.tempfile("temp_saved_hopper_256x256.ico")
|
||||
|
||||
# Act
|
||||
im.save(outfile)
|
||||
im_saved = Image.open(outfile)
|
||||
|
||||
# Assert
|
||||
self.assertEqual(im_saved.size, (256, 256))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user