mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Added test for _getexif TypeError
This commit is contained in:
parent
87d00fe441
commit
3a25b1cd9b
BIN
Tests/images/exif_typeerror.jpg
Normal file
BIN
Tests/images/exif_typeerror.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
|
@ -166,6 +166,12 @@ class TestFileJpeg(PillowTestCase):
|
|||
im = hopper()
|
||||
im.save(f, 'JPEG', quality=90, exif=b"1"*65532)
|
||||
|
||||
def test_exif_typeerror(self):
|
||||
im = Image.open('Tests/images/exif_typeerror.jpg')
|
||||
|
||||
# Should not raise a TypeError
|
||||
im._getexif()
|
||||
|
||||
def test_progressive_compat(self):
|
||||
im1 = self.roundtrip(hopper())
|
||||
im2 = self.roundtrip(hopper(), progressive=1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user