mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Merge pull request #4189 from cgohlke/patch-1
Report details about Pillow when running tests
This commit is contained in:
		
						commit
						3663af1967
					
				
							
								
								
									
										11
									
								
								Tests/conftest.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Tests/conftest.py
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
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)
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user