Skip to content

Commit 5ca4ca0

Browse files
committed
Print out Matplotlib and Freetype versions in pytest header
1 parent d4cd2ae commit 5ca4ca0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pytest_mpl/plugin.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ def _download_file(baseline, filename):
7070
return filename
7171

7272

73+
def pytest_report_header(config, startdir):
74+
import matplotlib
75+
import matplotlib.ft2font
76+
return ["Matplotlib: {0}".format(matplotlib.__version__),
77+
"Freetype: {0}".format(matplotlib.ft2font.__freetype_version__)]
78+
79+
7380
def pytest_addoption(parser):
7481
group = parser.getgroup("matplotlib image comparison")
7582
group.addoption('--mpl', action='store_true',

0 commit comments

Comments
 (0)