Merge pull request #1671 from radarhere/ifd

Add TIFF IFD test
This commit is contained in:
Hugo 2016-01-21 10:46:29 +02:00
commit 8a5b5c2d2c

View File

@ -107,6 +107,11 @@ class TestFileTiff(PillowTestCase):
self.assertRaises(SyntaxError,
lambda: TiffImagePlugin.TiffImageFile(invalid_file))
TiffImagePlugin.PREFIXES.append("\xff\xd8\xff\xe0")
self.assertRaises(SyntaxError,
lambda: TiffImagePlugin.TiffImageFile(invalid_file))
TiffImagePlugin.PREFIXES.pop()
def test_bad_exif(self):
i = Image.open('Tests/images/hopper_bad_exif.jpg')
try: