mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
10615a7da7
Co-authored-by: nulano <nulano@nulano.eu>
13 lines
299 B
Python
13 lines
299 B
Python
import io
|
|
|
|
|
|
def pytest_report_header(config):
|
|
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 f"pytest_report_header failed: {e}"
|