mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
98a2081a78
These modules are safe to import and this better follows PEP 8. From https://www.python.org/dev/peps/pep-0008/#imports > Imports are always put at the top of the file, just after any module > comments and docstrings, and before module globals and constants.
13 lines
301 B
Python
13 lines
301 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 "pytest_report_header failed: %s" % e
|