mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
add test image
This commit is contained in:
parent
dcd0cd9129
commit
73171f5046
BIN
Tests/images/app13-multiple.jpg
Normal file
BIN
Tests/images/app13-multiple.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
|
@ -676,6 +676,13 @@ class TestFileJpeg(PillowTestCase):
|
||||||
with Image.open("Tests/images/app13.jpg") as im:
|
with Image.open("Tests/images/app13.jpg") as im:
|
||||||
self.assertNotIn("photoshop", im.info)
|
self.assertNotIn("photoshop", im.info)
|
||||||
|
|
||||||
|
def test_photoshop_malformed_and_multiple(self):
|
||||||
|
with Image.open("Tests/images/app13-multiple.jpg") as im:
|
||||||
|
self.assertIn("photoshop", im.info)
|
||||||
|
self.assertEqual(24, len(im.info["photoshop"]))
|
||||||
|
apps_13_lengths = [len(v) for k, v in im.applist if k == "APP13"]
|
||||||
|
self.assertEqual([65504, 24], apps_13_lengths)
|
||||||
|
|
||||||
|
|
||||||
@unittest.skipUnless(is_win32(), "Windows only")
|
@unittest.skipUnless(is_win32(), "Windows only")
|
||||||
class TestFileCloseW32(PillowTestCase):
|
class TestFileCloseW32(PillowTestCase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user