Skip to content

TST: Fix minor issues in interactive backend test#28838

Merged
ksunden merged 1 commit intomatplotlib:mainfrom
QuLogic:test-interactive-update
Sep 30, 2024
Merged

TST: Fix minor issues in interactive backend test#28838
ksunden merged 1 commit intomatplotlib:mainfrom
QuLogic:test-interactive-update

Conversation

@QuLogic
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@QuLogic
Copy link
Copy Markdown
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
@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
QuLogic added a commit to fedora-python/matplotlib that referenced this pull request Oct 2, 2025
QuLogic added a commit to fedora-python/matplotlib that referenced this pull request Jan 7, 2026
QuLogic added a commit to fedora-python/matplotlib that referenced this pull request Jan 7, 2026
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