Target mode is I, check pixels

This commit is contained in:
Eric Soroos 2017-09-20 09:26:40 +00:00
parent 60cbe9fe44
commit a89c4e455d

View File

@ -201,7 +201,9 @@ class TestFileTiff(PillowTestCase):
def test_16bit_s(self): def test_16bit_s(self):
im = Image.open('Tests/images/16bit.s.tif') im = Image.open('Tests/images/16bit.s.tif')
im.load() im.load()
self.assertEqual(im.mode, 'I;16S') self.assertEqual(im.mode, 'I')
self.assertEqual(im.getpixel((0,0)),32767)
self.assertEqual(im.getpixel((0,1)),0)
def test_12bit_rawmode(self): def test_12bit_rawmode(self):
""" Are we generating the same interpretation """ Are we generating the same interpretation