mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Added test for point operation on F mode image
This commit is contained in:
parent
e8495e5917
commit
01cb6590a4
|
@ -35,6 +35,9 @@ class TestImagePoint(PillowTestCase):
|
||||||
int_lut = [x//2 for x in range(256)]
|
int_lut = [x//2 for x in range(256)]
|
||||||
self.assert_image_equal(out.convert('L'), im.point(int_lut, 'L'))
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user