mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Test for issue #2278
This commit is contained in:
parent
843f8b2a6b
commit
56e490fe7c
BIN
Tests/images/issue_2278.tif
Normal file
BIN
Tests/images/issue_2278.tif
Normal file
Binary file not shown.
|
@ -230,6 +230,14 @@ class TestFileTiffMetadata(PillowTestCase):
|
|||
self.fail("Should not be struct value error there.")
|
||||
self.assertIn(33432, info)
|
||||
|
||||
def test_PhotoshopInfo(self):
|
||||
im = Image.open('Tests/images/issue_2278.tif')
|
||||
|
||||
self.assertIsInstance(im.tag_v2[34377], bytes)
|
||||
out = self.tempfile('temp.tiff')
|
||||
im.save(out)
|
||||
reloaded = Image.open(out)
|
||||
self.assertIsInstance(reloaded.tag_v2[34377], bytes)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user