macOS: Check for display availability when looking for backends#27761
macOS: Check for display availability when looking for backends#27761QuLogic wants to merge 1 commit intomatplotlib:mainfrom
Conversation
a3255ec to
d6179de
Compare
d6179de to
e8943a0
Compare
|
I can confirm that this:
|
|
Running the tests on this branch locally without a user logged in to the desktop (so launched via ssh) I get: This suggests that what is going on the CI is slightly different than not having a display? |
|
On Actions, the display does appear to exist, according to the results from #27723: For your failures, I think that's because the macOS tests don't have a skip, so I hadn't added one (only modified existing ones.) |
e8943a0 to
bcc570b
Compare
|
I tried re-running the failed mac3.11 jobs. |
|
Looking at https://stackoverflow.com/questions/71954472/tkinter-crashes-on-ipython-but-not-in-python-on-a-m1-mac I think this might be because |
|
Ah, here's a full explanation:
but substitute the new code written here for AFAICT from Googling though, we need the Can you check if it works without the |
PR summary
This checks
NSScreen::mainScreensimilar to checking$DISPLAY/$WAYLAND_DISPLAYon Linux.Fixes #26292
PR checklist