mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			309 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			309 B
		
	
	
	
		
			Python
		
	
	
	
	
	
def pytest_report_header(config):
 | 
						|
    import io
 | 
						|
 | 
						|
    try:
 | 
						|
        from PIL import features
 | 
						|
 | 
						|
        with io.StringIO() as out:
 | 
						|
            features.pilinfo(out=out, supported_formats=False)
 | 
						|
            return out.getvalue()
 | 
						|
    except Exception as e:
 | 
						|
        return "pytest_report_header failed: %s" % str(e)
 |