Skip to content
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

Fix import and segfault in test suite #25

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

astrofrog
Copy link
Member

This incorrect import was causing the whole test suite to segfault with the latest pytest, because we do need to set up a QApplication before the first Qt-related test is run.

@astrofrog astrofrog added the bug Something isn't working label Sep 26, 2024
@astrofrog
Copy link
Member Author

cc @dhomeier for info!

@dhomeier
Copy link
Contributor

I must admit I do not understand how the import exception is now caught, but it seems to work mostly.
Cannot tell if https://github.com/glue-viz/glue-qt/actions/runs/11052579534/job/30705037071?pr=25#step:10:146 is related though.

@astrofrog
Copy link
Member Author

We don't need to catch the exception because it's guaranteed to work I think?

@astrofrog
Copy link
Member Author

I'll merge this and look at the remaining failure separately

@astrofrog astrofrog merged commit 8a1d6ab into glue-viz:main Sep 26, 2024
34 of 45 checks passed
@dhomeier
Copy link
Contributor

dhomeier commented Sep 26, 2024

We don't need to catch the exception because it's guaranteed to work I think?

But then the branch not calling get_qapp() should have never been hit before, I thought; but just noticed the actual import was also changed to glue_qt. Makes sense now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants