mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	parametrize test_file_tar::test_sanity()
This commit is contained in:
		
							parent
							
								
									50f5eade47
								
							
						
					
					
						commit
						cd4656410f
					
				|  | @ -10,11 +10,14 @@ from .helper import is_pypy | |||
| TEST_TAR_FILE = "Tests/images/hopper.tar" | ||||
| 
 | ||||
| 
 | ||||
| def test_sanity(): | ||||
|     for codec, test_path, format in [ | ||||
|         ["zlib", "hopper.png", "PNG"], | ||||
|         ["jpg", "hopper.jpg", "JPEG"], | ||||
|     ]: | ||||
| @pytest.mark.parametrize( | ||||
|     ("codec", "test_path", "format"), | ||||
|     ( | ||||
|         ("zlib", "hopper.png", "PNG"), | ||||
|         ("jpg", "hopper.jpg", "JPEG"), | ||||
|     ), | ||||
| ) | ||||
| def test_sanity(codec, test_path, format): | ||||
|     if features.check(codec): | ||||
|         with TarIO.TarIO(TEST_TAR_FILE, test_path) as tar: | ||||
|             with Image.open(tar) as im: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user