diff --git a/Tests/images/exif_gps_typeerror.jpg b/Tests/images/exif_gps_typeerror.jpg new file mode 100644 index 000000000..0b1f06043 Binary files /dev/null and b/Tests/images/exif_gps_typeerror.jpg differ diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py index 371b7037b..e6da7bb8b 100644 --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -168,6 +168,11 @@ class TestFileJpeg(PillowTestCase): def test_exif_typeerror(self): im = Image.open('Tests/images/exif_typeerror.jpg') + # Should not raise a TypeError + im._getexif() + + def test_exif_gps_typeerror(self): + im = Image.open('Tests/images/exif_gps_typeerror.jpg') # Should not raise a TypeError im._getexif()