Skip to content

Conversation

@ngoldbaum
Copy link
Contributor

This skips tests that rely on setting sys.unraisablehook and tests that use warnings.catch_warnings.

Setting anything on the sys module is overriding global state, so it fundamentally isn't thread safe. An alternative would be to make it so any test that uses UnraisableCapture needs to acquire a mutex first. Happy to do that if anyone is uncomfortable with skipping tests.

Unfortunately there isn't a similar workaround for tests relying on catch_warnings, it's fundamentally not thread safe, as mentioned in the docs for it.

@ngoldbaum ngoldbaum added the CI-skip-changelog Skip checking changelog entry label Aug 23, 2024
Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks!

@davidhewitt davidhewitt added this pull request to the merge queue Aug 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 24, 2024
@ngoldbaum
Copy link
Contributor Author

Test failures in the merge queue are because of #4447 I think.

@davidhewitt davidhewitt added this pull request to the merge queue Aug 24, 2024
Merged via the queue into PyO3:main with commit 1c98858 Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants