Added test for _getexif TypeError

This commit is contained in:
Andrew Murray 2015-07-29 23:38:26 +10:00
parent 87d00fe441
commit 3a25b1cd9b
2 changed files with 6 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -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)