From 5f18f2bb8f6683e7566b8bd44f1cedbfefe9747d Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 12 Jun 2026 18:31:35 +0200 Subject: [PATCH] test: cap matplotlib<3.11 for the test env to stabilize image baselines matplotlib 3.11.0 (released 2026-06-12) changes colorbar/image rasterization enough to push tests/pl/test_colorbar.py image comparisons past the RMS tolerance (RMS ~22-31 vs 15), failing CI repo-wide on the py3.11-stable env. Cap matplotlib in the 'test' dependency-group only; the runtime dependency stays open so users/downstream still get 3.11. Temporary until the colorbar baselines are regenerated against 3.11. --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 1c02f269..0e42d6a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,10 @@ dev = [ ] test = [ "coverage[toml]>=7.4", + # Image-comparison baselines are matplotlib-version-sensitive; matplotlib 3.11.0 (released + # 2026-06-12) shifts colorbar rendering past the comparison tolerance. Cap for tests only + # (the runtime dependency stays open) until the baselines are regenerated against 3.11. + "matplotlib<3.11", "pooch", "pytest", "pytest-cov",