Added test for point operation on F mode image

This commit is contained in:
Andrew Murray 2017-01-28 14:02:22 +11:00
parent e8495e5917
commit 01cb6590a4

View File

@ -35,6 +35,9 @@ class TestImagePoint(PillowTestCase):
int_lut = [x//2 for x in range(256)]
self.assert_image_equal(out.convert('L'), im.point(int_lut, 'L'))
def test_f_mode(self):
self.assertRaises(ValueError, lambda: hopper('F').point(None))
if __name__ == '__main__':
unittest.main()