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 windows/pyqt test_dont_crash_on_click failure #663

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

aaronayres35
Copy link
Contributor

This PR attempts to fix the CI failure observed here: #633 (comment) and #649 (comment)

TBH I do not understand the error entirely yet. It doesn't make sense to me that '_QtWindow' object has no attribute 'handler' as it is explicitly defined in the __init__ method of '_QtWindow' . Further I don't get how that would be a windows specific problem....
Nonetheless, the error is occurring in a leaveEvent method. This PR is really a hunch (I don't have a windows machine so I am opening the PR to see if it actually fixes the problem). I changed the coordinates of the drag in the test to hopefully avoid any sort of leaveEvent occurring. Leaving the window is actually not the intended behavior of the test anyway.
I am not sure why a leaveEvent was ever getting triggered in the first place as the view being tested explicitly sets height = 500, width = 500.

@aaronayres35
Copy link
Contributor Author

Seems to have done the trick? 🤞 (windows pyqt job has passed)
At the very least this seems like an effective temporary patch to keep CI happy. The test still tests the desired behavior.

@aaronayres35 aaronayres35 changed the title [WIP] fix windows/pyqt test_dont_crash_on_click failure fix windows/pyqt test_dont_crash_on_click failure Apr 13, 2021
Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM

@aaronayres35 aaronayres35 merged commit 1ed123c into master Apr 14, 2021
@aaronayres35 aaronayres35 deleted the fix/test_dont_crash_on_click branch April 14, 2021 18:17
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