()
| 1356 | |
| 1357 | |
| 1358 | def _init_tests(): |
| 1359 | # The version of FreeType to install locally for running the tests. This must match |
| 1360 | # the value in `subprojects/freetype2.wrap`. |
| 1361 | LOCAL_FREETYPE_VERSION = '2.14.3' |
| 1362 | |
| 1363 | from matplotlib import ft2font |
| 1364 | if (ft2font.__freetype_version__ != LOCAL_FREETYPE_VERSION or |
| 1365 | ft2font.__freetype_build_type__ != 'local'): |
| 1366 | _log.warning( |
| 1367 | "Matplotlib is not built with the correct FreeType version to run tests. " |
| 1368 | "Rebuild without setting system-freetype=true in Meson setup options. " |
| 1369 | "Expect many image comparison failures below. " |
| 1370 | "Expected freetype version %s. " |
| 1371 | "Found freetype version %s. " |
| 1372 | "Freetype build type is %slocal.", |
| 1373 | LOCAL_FREETYPE_VERSION, |
| 1374 | ft2font.__freetype_version__, |
| 1375 | "" if ft2font.__freetype_build_type__ == 'local' else "not ") |
| 1376 | |
| 1377 | # Generate a shortcut for classic testing style. |
| 1378 | from matplotlib.style import _base_library, library |
| 1379 | _base_library['_classic_test'] = library['_classic_test'] = RcParams( |
| 1380 | _base_library['classic'] | _base_library['_classic_test_patch']) |
| 1381 | |
| 1382 | |
| 1383 | def _replacer(data, value): |
nothing calls this directly
no test coverage detected
searching dependent graphs…