Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TST: Run macosx backends in a subprocess #29150

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
Nov 20, 2024

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Nov 16, 2024

PR summary

While evaluating CI usage, I noticed that some backend tests were not running because the macosx event loop was already running.

In the macosx backend, event_loop_is_running returns true after lazy_init is called, which happens in the new constructor for any class. This means it is "running" as soon as a figure is created, and this will block any other backend tests.

Not fully tested since I'm not on a mac, but we'll see how CI feels about it.

PR checklist

In the macosx backend, `event_loop_is_running` returns true after
`lazy_init` is called, which happens in the `new` constructor for _any_
class. This means it is "running" as soon as a figure is created, and
this will block any other backend tests.
@QuLogic
Copy link
Member Author

QuLogic commented Nov 16, 2024

I can no longer find the text "Cannot load backend '...' which requires the '...' interactive framework, as 'macosx' is currently running." on the macOS runners, so this has correctly freed up the event loop to run other backends (though they may be skipped anyway for other reasons).

@QuLogic QuLogic marked this pull request as ready for review November 16, 2024 10:56
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.

I've confirmed it works locally on macOS too.

@greglucas greglucas merged commit 647b005 into matplotlib:main Nov 20, 2024
47 checks passed
@QuLogic QuLogic deleted the macosx-subprocess branch November 20, 2024 20:43
@QuLogic QuLogic added this to the v3.11.0 milestone Nov 20, 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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.