Skip to content

check freetype version also specifies what is wrong #6403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
10 changes: 9 additions & 1 deletion lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,15 @@ def _init_tests():
warnings.warn(
"matplotlib is not built with the correct FreeType version to run "
"tests. Set local_freetype=True in setup.cfg and rebuild. "
"Expect many image comparison failures below.")
"Expect many image comparison failures below. "
"Expected freetype version {0}. "
"Found freetype version {1}."
"Freetype build type is {2}local".format(
ft2font.__freetype_version__,
LOCAL_FREETYPE_VERSION,
"" if ft2font.__freetype_build_type__ == 'local' else "not "
)
)

try:
import nose
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

_multiprocess_can_split_ = True


# Check that the test directories exist
if not os.path.exists(os.path.join(
os.path.dirname(__file__), 'baseline_images')):
Expand Down