8000 better freetype version checking · matplotlib/matplotlib@009ea6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 009ea6d

Browse files
author
Herbert Kruitbosch
committed
better freetype version checking
1 parent 68e01df commit 009ea6d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,15 @@ def _init_tests():
15701570
warnings.warn(
15711571
"matplotlib is not built with the correct FreeType version to run "
15721572
"tests. Set local_freetype=True in setup.cfg and rebuild. "
1573< 7ED4 code>-
"Expect many image comparison failures below.")
1573+
"Expect many image comparison failures below. "
1574+
"Expected freetype version {0}. "
1575+
"Found freetype version {1}."
1576+
"Freetype build type is {2}local".format(
1577+
ft2font.__freetype_version__,
1578+
LOCAL_FREETYPE_VERSION,
1579+
"" if ft2font.__freetype_build_type__ == 'local' else "not "
1580+
)
1581+
)
15741582

15751583
try:
15761584
import nose

0 commit comments

Comments
 (0)
0