Skip to content

Commit ca5324c

Browse files
committed
Merge pull request #6803 from prinsherbert/freetype-version-check
better freetype version checking
1 parent 8396451 commit ca5324c

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
@@ -1539,7 +1539,15 @@ def verify_test_dependencies():
15391539
warnings.warn(
15401540
"matplotlib is not built with the correct FreeType version to run "
15411541
"tests. Set local_freetype=True in setup.cfg and rebuild. "
1542-
"Expect many image comparison failures below.")
1542+
"Expect many image comparison failures below. "
1543+
"Expected freetype version {0}. "
1544+
"Found freetype version {1}. "
1545+
"Freetype build type is {2}local".format(
1546+
ft2font.__freetype_version__,
1547+
LOCAL_FREETYPE_VERSION,
1548+
"" if ft2font.__freetype_build_type__ == 'local' else "not "
1549+
)
1550+
)
15431551

15441552
try:
15451553
import nose

0 commit comments

Comments
 (0)