mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	fixed tests
This commit is contained in:
		
							parent
							
								
									b768cc09d7
								
							
						
					
					
						commit
						cbf4f328c7
					
				| 
						 | 
					@ -304,5 +304,5 @@ def test_exif_transpose():
 | 
				
			||||||
def test_autocontrast_cutoff():
 | 
					def test_autocontrast_cutoff():
 | 
				
			||||||
    # Test the cutoff argument of autocontrast
 | 
					    # Test the cutoff argument of autocontrast
 | 
				
			||||||
    with Image.open("Tests/images/bw_gradient.png") as img:
 | 
					    with Image.open("Tests/images/bw_gradient.png") as img:
 | 
				
			||||||
        assert  ImageOps.autocontrast(img, cutoff=10).getdata() == ImageOps.autocontrast(img, cutoff=(10,10)).getdata()
 | 
					        assert  ImageOps.autocontrast(img, cutoff=10).histogram() == ImageOps.autocontrast(img, cutoff=(10,10)).histogram()
 | 
				
			||||||
        assert  ImageOps.autocontrast(img, cutoff=10).getdata() != ImageOps.autocontrast(img, cutoff=(1,10)).getdata()
 | 
					        assert  ImageOps.autocontrast(img, cutoff=10).histogram() != ImageOps.autocontrast(img, cutoff=(1,10)).histogram()
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user