mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	test_file_tiff: skip if TIFF is not available.
This commit is contained in:
		
							parent
							
								
									a83530f475
								
							
						
					
					
						commit
						995fe2b041
					
				| 
						 | 
					@ -4,6 +4,11 @@ from PIL import Image
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import random
 | 
					import random
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					codecs = dir(Image.core)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if "group4_encoder" not in codecs or "group4_decoder" not in codecs:
 | 
				
			||||||
 | 
					    skip("tiff support not available")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def test_sanity():
 | 
					def test_sanity():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    file = tempfile("temp.tif")
 | 
					    file = tempfile("temp.tif")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user