mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Added test
This commit is contained in:
parent
2d9f091a30
commit
60902efeb0
|
@ -28,6 +28,10 @@ class TestImageQuantize(PillowTestCase):
|
||||||
im.quantize()
|
im.quantize()
|
||||||
self.assertRaises(Exception, lambda: im.quantize(method=0))
|
self.assertRaises(Exception, lambda: im.quantize(method=0))
|
||||||
|
|
||||||
|
def test_quantize(self):
|
||||||
|
im = Image.open('Tests/images/caption_6_33_22.png')
|
||||||
|
im.convert('RGB').quantize().convert('RGB')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user