mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
error test for bw compression on RGB file
This commit is contained in:
parent
a4a9b36ed0
commit
1d6f6ffa10
|
@ -212,3 +212,11 @@ def test_cmyk_save():
|
|||
im.save(out, compression='tiff_adobe_deflate')
|
||||
im2 = Image.open(out)
|
||||
assert_image_equal(im, im2)
|
||||
|
||||
def test_bw_compression_wRGB():
|
||||
im = lena('RGB')
|
||||
out = tempfile('temp.tif')
|
||||
|
||||
assert_exception(IOError, lambda: im.save(out, compression='tiff_ccitt'))
|
||||
assert_exception(IOError, lambda: im.save(out, compression='group3'))
|
||||
assert_exception(IOError, lambda: im.save(out, compression='group4'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user