Skip to content

TST: Fix minor issues in interactive backend test #28838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Sep 19, 2024

PR summary

We noticed this while looking at #28588.

  • Close the figure immediately, to avoid the deprecation warning about automatically closing figure when changing backends. This test doesn't intend to test the warning, just the change behaviour itself.
  • Enable the post-show() result check everywhere. The comment implies it should only be skipped on (macOS and Qt5), but the condition is actually only enabled on macOS and (not Qt5). I'm not sure if this will actually work as it's been disabled for so long unintentionally.

PR checklist

- Close the figure immediately, to avoid the deprecation warning about
  automatically closing figure when changing backends. This test doesn't
  intend to test the warning, just the change behaviour itself.
- Enable the post-`show()` result check everywhere. The comment implies
  it should only be skipped on `(macOS and Qt5)`, but the condition is
  actually only enabled on `macOS and (not Qt5)`.
@tacaswell
Copy link
Member

The failed check looks like the thread-safe test where sometimes the sub-process dies for other (? we hope) reasons.

@QuLogic
Copy link
Member Author

QuLogic commented Sep 19, 2024

Did that get restarted? I don't see a failed test any more.

@ksunden ksunden merged commit 7c7f94c into matplotlib:main Sep 30, 2024
50 checks passed
@QuLogic QuLogic deleted the test-interactive-update branch September 30, 2024 22:59
kyracho pushed a commit to kyracho/matplotlib that referenced this pull request Oct 10, 2024
- Close the figure immediately, to avoid the deprecation warning about
  automatically closing figure when changing backends. This test doesn't
  intend to test the warning, just the change behaviour itself.
- Enable the post-`show()` result check everywhere. The comment implies
  it should only be skipped on `(macOS and Qt5)`, but the condition is
  actually only enabled on `macOS and (not Qt5)`.
QuLogic added a commit to fedora-python/matplotlib that referenced this pull request Jan 24, 2025
QuLogic added a commit to fedora-python/matplotlib that referenced this pull request May 10, 2025
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.

4 participants