Skip to content

TST: forgive more failures on pyside2 / pyside6 cross imports #23069

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 2 commits into from
May 19, 2022

Conversation

tacaswell
Copy link
Member

PR Summary

closes #23004

This is testing that we warn something is a bad idea and failing because it is indeed a bad idea.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

@tacaswell tacaswell added this to the v3.5.3 milestone May 18, 2022
@QuLogic
Copy link
Member

QuLogic commented May 18, 2022

cc @ArchangeGabriel

@@ -359,6 +359,10 @@ def test_cross_Qt_imports():
# are doing something that we do not expect to work
if ex.returncode == -11:
continue
# We got the abort signal which is likely because the Qt5 /
# Qt6 cross import is unhappy, carry on.
elif ex.returncode == -6:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps == -signal.SIGABRT here (and likewise -signal.SIGSEGV just above)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@ArchangeGabriel
Copy link
Contributor

cc @ArchangeGabriel

Thanks, tested locally and confirmed it obviously work. ;)

Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

postci

@QuLogic
Copy link
Member

QuLogic commented May 19, 2022

I don't know why Ubuntu started failing now.

@tacaswell
Copy link
Member Author

I don't know why Ubuntu started failing now.

I looked at this yesterday and it looks like issues counting fonts (?!) The test does something funny where it does a set on one side of the comparsion and just sorts the other. I suspect the debugging path is to temporarily add -k get_fonts and the add buckets of prints....

@QuLogic
Copy link
Member

QuLogic commented May 19, 2022

I noticed it was passing on another PR, so I restarted them and it's all magically working again.

@QuLogic QuLogic merged commit 59c8a87 into matplotlib:main May 19, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 19, 2022
@tacaswell tacaswell deleted the fix_qt_failures branch May 19, 2022 20:53
QuLogic added a commit that referenced this pull request May 19, 2022
…069-on-v3.5.x

Backport PR #23069 on branch v3.5.x (TST: forgive more failures on pyside2 / pyside6 cross imports)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: test failure of test_cross_Qt_imports in 3.5.2
4 participants