mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Simplified code
This commit is contained in:
		
							parent
							
								
									7d49c8f38c
								
							
						
					
					
						commit
						4b5eab4c17
					
				|  | @ -305,11 +305,9 @@ 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).histogram() |         def autocontrast(cutoff): | ||||||
|             == ImageOps.autocontrast(img, cutoff=(10, 10)).histogram() |             return ImageOps.autocontrast(img, cutoff).histogram() | ||||||
|         ) | 
 | ||||||
|         assert ( |         assert autocontrast(10) == autocontrast((10, 10)) | ||||||
|             ImageOps.autocontrast(img, cutoff=10).histogram() |         assert autocontrast(10) != autocontrast((1, 10)) | ||||||
|             != ImageOps.autocontrast(img, cutoff=(1, 10)).histogram() |  | ||||||
|         ) |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user