I'd like to also have 3.13 for testing in https://github.com/gentoo/sci/pull/1292/commits/ee3dd9dc8bca4364f9841deeef9446169ac29905.
I'm sorry to say but pytest-mpl is completely broken by design. It relies on matching output to references images, and these are roughly correct only for very specific freetype version. We specifically build a separate matplotlib instance in src_test() for its own tests, but since matplotlib proper uses system freetype already, other packages (such as pytest-mpl) are broken. In fact, if not for cartopy I would have removed pytest-mpl from ::gentoo already.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f53f91fbe27e4ec7c9eb9762065d16bd85a3c165 commit f53f91fbe27e4ec7c9eb9762065d16bd85a3c165 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2025-03-18 19:44:08 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2025-03-18 20:13:06 +0000 dev-python/pytest-mpl: Enable py3.13 Closes: https://bugs.gentoo.org/941848 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/pytest-mpl/pytest-mpl-0.17.0.ebuild | 30 ++++++++++++++++---------- 1 file changed, 19 insertions(+), 11 deletions(-)