Skip to content

Backport PR #28205 on branch v3.9.x (TST: Fix tests with older versions of ipython)#28206

Merged
ksunden merged 2 commits intomatplotlib:v3.9.xfrom
meeseeksmachine:auto-backport-of-pr-28205-on-v3.9.x
May 13, 2024
Merged

Backport PR #28205 on branch v3.9.x (TST: Fix tests with older versions of ipython)#28206
ksunden merged 2 commits intomatplotlib:v3.9.xfrom
meeseeksmachine:auto-backport-of-pr-28205-on-v3.9.x

Conversation

@meeseeksmachine
Copy link
Contributor

Backport PR #28205: TST: Fix tests with older versions of ipython

Make the changes suggested by @ianthomas23, and also mark the ipython
tests as using their backend. While the backend is already checked for
availability at the top of the respective files, that only checks
whether it can be imported, not whether it can be set as the Matplotlib
backend. Adding the marker causes our pytest configuration to actually
check and skip the test if unavailable (e.g., on Linux without
`(WAYLAND_)DISPLAY` set fails to set an interactive backend).
Copy link
Member

@ianthomas23 ianthomas23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving assuming CI passes.

@ksunden ksunden merged commit 8604f67 into matplotlib:v3.9.x May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants