Skip to content

GH-110796: fix intermittent test failure in test_current_exceptions #110797

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
Oct 13, 2023

Conversation

FFY00
Copy link
Member

@FFY00 FFY00 commented Oct 13, 2023

@FFY00
Copy link
Member Author

FFY00 commented Oct 13, 2023

@jd, I know it has been a while, but as the original author, could you have a look? Did I missing something, or is my interpretation sane? Thanks!

if leave_g.wait(timeout=support.LONG_TIMEOUT):
break

t = threading.Thread(target=f123)
t.start()
entered_g.wait()
g_raised.wait(timeout=support.LONG_TIMEOUT)
Copy link
Member Author

@FFY00 FFY00 Oct 13, 2023

Choose a reason for hiding this comment

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

Also added a timeout here, as if an unexpected exception is raised in the thread, the event will never be set, and we will deadlock.

@FFY00
Copy link
Member Author

FFY00 commented Oct 13, 2023

The Windows failure is GH-110800.

Copy link
Contributor

@jd jd left a comment

Choose a reason for hiding this comment

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

This looks like a good fix, you need to change the comment on L536 though 😄

Signed-off-by: Filipe Laíns <[email protected]>
@FFY00
Copy link
Member Author

FFY00 commented Oct 13, 2023

Thanks! I forgot that.

@FFY00 FFY00 enabled auto-merge (squash) October 13, 2023 05:58
@FFY00 FFY00 merged commit 2f59d41 into python:main Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants