Merge pull request #269 from megabuz/master

move test_adobe_deflate_tiff to libtiff test file
This commit is contained in:
Alex Clark ☺ 2013-07-02 03:37:34 -07:00
commit 1693a21bc5
2 changed files with 8 additions and 9 deletions

View File

@ -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())

View File

@ -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())