From b68bb56b647de6271a3cc8f220188af524d55675 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Mon, 14 Dec 2015 20:24:01 +0000 Subject: [PATCH] test for issue #1561 --- Tests/test_file_libtiff.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tests/test_file_libtiff.py b/Tests/test_file_libtiff.py index f900b97cf..838b59365 100644 --- a/Tests/test_file_libtiff.py +++ b/Tests/test_file_libtiff.py @@ -165,6 +165,13 @@ class TestFileLibTiff(LibTiffTestCase): self.assertEqual( val, value, msg="%s didn't roundtrip" % tag) + # https://github.com/python-pillow/Pillow/issues/1561 + requested_fields = ['StripByteCounts', + 'RowsPerStrip', + 'StripOffsets'] + for field in requested_fields: + self.assertTrue(field in reloaded, "%s not in metadata" %field) + def test_g3_compression(self): i = Image.open('Tests/images/hopper_g4_500.tif') out = self.tempfile("temp.tif")