mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	move test_adobe_deflate_tiff to libtiff test file
This commit is contained in:
		
							parent
							
								
									df0e214d46
								
							
						
					
					
						commit
						bacaf26f20
					
				| 
						 | 
					@ -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