Skip to content

[9.0] test: Python 3.14 and matplotlib 3.11 compatibility in test suite#8701

Open
chrisburr wants to merge 3 commits into
DIRACGrid:rel-v9r0from
chrisburr:fix/python-3.14-test-compat-v9r0
Open

[9.0] test: Python 3.14 and matplotlib 3.11 compatibility in test suite#8701
chrisburr wants to merge 3 commits into
DIRACGrid:rel-v9r0from
chrisburr:fix/python-3.14-test-compat-v9r0

Conversation

@chrisburr

Copy link
Copy Markdown
Member

Backport of #8695 to rel-v9r0.

Summary

  • Replace assertDictContainsSubset (removed in Python 3.12) with assertLessEqual(subset.items(), full.items()) in the user-metadata integration test.
  • Accept multiple reference images in the plot comparison tests (referenceImages/compareToReferences), so a matplotlib change only needs an additional <stem>.<tag>.png reference rather than replacing the existing one.
  • Add matplotlib 3.11 reference images, rendered from this branch's own plotting code.

A plot is accepted when it matches any of several reference images, so a matplotlib upgrade that changes the rendering only needs an extra reference image (<stem>.<tag>.png) rather than replacing the existing one.
Rendered with the matplotlib shipped in DIRACOS for Python 3.14, so the plot comparison tests pass on both the previous and the new matplotlib.
@chrisburr chrisburr requested a review from fstagni as a code owner July 10, 2026 21:22
@chrisburr chrisburr added the sweep:ignore Prevent sweeping from being ran for this PR label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant