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

BUG: Remove cycle on cleanup. #1143

Merged
merged 1 commit into from
Jul 7, 2022
Merged

BUG: Remove cycle on cleanup. #1143

merged 1 commit into from
Jul 7, 2022

Conversation

rkern
Copy link
Member

@rkern rkern commented Jul 7, 2022

This cycle does not appear to matter on PyQt5, but will persist in PySide2 and PySide6.

This cleanup is required in order to port Mayavi to PySide6, at least without adding more test skips for Mayavi tests that try to determine if forgetting about DecoratedScene objects (which make toolbars) doesn't leave cycles.

I could add tests here if we wanted to introduce gc-using tests to pyface.

@rkern rkern requested a review from corranwebster July 7, 2022 01:42
@rkern
Copy link
Member Author

rkern commented Jul 7, 2022

cycles-0

Similar results occur for PySide2, but not on PyQt5.

(And yes, thanks @mdickinson for mdickinson/refcycle. Lifesaver.)

Copy link
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

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

Looks good

@corranwebster corranwebster merged commit 5b986bb into main Jul 7, 2022
@corranwebster corranwebster deleted the fix/action-cycle branch July 7, 2022 06:58
corranwebster pushed a commit that referenced this pull request Jul 7, 2022
corranwebster pushed a commit that referenced this pull request Jul 11, 2022
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.

2 participants