mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
Remove READ|WRITE_LIBTIFF guards for LZW/packbits compression tests
This commit is contained in:
parent
24cb7bf3df
commit
413a086c09
|
@ -258,9 +258,6 @@ def test_compressions():
|
||||||
im = lena('RGB')
|
im = lena('RGB')
|
||||||
out = tempfile('temp.tif')
|
out = tempfile('temp.tif')
|
||||||
|
|
||||||
TiffImagePlugin.READ_LIBTIFF = True
|
|
||||||
TiffImagePlugin.WRITE_LIBTIFF = True
|
|
||||||
|
|
||||||
for compression in ('packbits', 'tiff_lzw'):
|
for compression in ('packbits', 'tiff_lzw'):
|
||||||
im.save(out, compression=compression)
|
im.save(out, compression=compression)
|
||||||
im2 = Image.open(out)
|
im2 = Image.open(out)
|
||||||
|
@ -270,11 +267,6 @@ def test_compressions():
|
||||||
im2 = Image.open(out)
|
im2 = Image.open(out)
|
||||||
assert_image_similar(im, im2, 30)
|
assert_image_similar(im, im2, 30)
|
||||||
|
|
||||||
TiffImagePlugin.READ_LIBTIFF = False
|
|
||||||
TiffImagePlugin.WRITE_LIBTIFF = False
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_cmyk_save():
|
def test_cmyk_save():
|
||||||
im = lena('CMYK')
|
im = lena('CMYK')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user