mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Merge pull request #269 from megabuz/master
move test_adobe_deflate_tiff to libtiff test file
This commit is contained in:
commit
1693a21bc5
|
@ -87,3 +87,11 @@ def test_g4_write():
|
||||||
|
|
||||||
assert_false(orig.tobytes() == reread.tobytes())
|
assert_false(orig.tobytes() == reread.tobytes())
|
||||||
|
|
||||||
|
def test_adobe_deflate_tiff():
|
||||||
|
file = "Tests/images/tiff_adobe_deflate.tif"
|
||||||
|
im = Image.open(file)
|
||||||
|
|
||||||
|
assert_equal(im.mode, "RGB")
|
||||||
|
assert_equal(im.size, (278, 374))
|
||||||
|
assert_equal(im.tile[0][:3], ('tiff_adobe_deflate', (0, 0, 278, 374), 0))
|
||||||
|
assert_no_exception(lambda: im.load())
|
||||||
|
|
|
@ -71,12 +71,3 @@ def test_xyres_tiff():
|
||||||
im.tag.tags[Y_RESOLUTION] = (72,)
|
im.tag.tags[Y_RESOLUTION] = (72,)
|
||||||
im._setup()
|
im._setup()
|
||||||
assert_equal(im.info['dpi'], (72., 72.))
|
assert_equal(im.info['dpi'], (72., 72.))
|
||||||
|
|
||||||
def test_adobe_deflate_tiff():
|
|
||||||
file = "Tests/images/tiff_adobe_deflate.tif"
|
|
||||||
im = Image.open(file)
|
|
||||||
|
|
||||||
assert_equal(im.mode, "RGB")
|
|
||||||
assert_equal(im.size, (278, 374))
|
|
||||||
assert_equal(im.tile[0][:3], ('tiff_adobe_deflate', (0, 0, 278, 374), 0))
|
|
||||||
assert_no_exception(lambda: im.load())
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user