Skip to content

Commit

Permalink
Merge pull request #4189 from cgohlke/patch-1
Browse files Browse the repository at this point in the history
Report details about Pillow when running tests
  • Loading branch information
hugovk authored Nov 5, 2019
2 parents 69a5187 + 5d10f8d commit 3663af1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 3663af1

Please sign in to comment.