mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-15 10:42:19 +03:00
Merge pull request #1216 from hugovk/fix_osx_build
Fix test according to original
This commit is contained in:
commit
414c3f8b3a
|
@ -27,10 +27,10 @@ class TestFileIcns(PillowTestCase):
|
||||||
def test_save(self):
|
def test_save(self):
|
||||||
im = Image.open(TEST_FILE)
|
im = Image.open(TEST_FILE)
|
||||||
|
|
||||||
TEST_FILE = self.tempfile("temp.icns")
|
temp_file = self.tempfile("temp.icns")
|
||||||
im.save(TEST_FILE)
|
im.save(temp_file)
|
||||||
|
|
||||||
reread = Image.open(TEST_FILE)
|
reread = Image.open(temp_file)
|
||||||
|
|
||||||
self.assertEqual(reread.mode, "RGBA")
|
self.assertEqual(reread.mode, "RGBA")
|
||||||
self.assertEqual(reread.size, (1024, 1024))
|
self.assertEqual(reread.size, (1024, 1024))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user