Skip to content

gh-146358: Fix warnings.catch_warnings on Free Threading#146374

Open
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:warnings
Open

gh-146358: Fix warnings.catch_warnings on Free Threading#146374
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:warnings

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 24, 2026

catch_warnings now also overrides warnings.showwarning() on Free Threading to support custom warnings.showwarning().

catch_warnings now also overrides warnings.showwarning() on Free
Threading to support custom warnings.showwarning().
@vstinner
Copy link
Member Author

cc @nascheme and @kumaraditya303 who added the the context variable to warnings.catch_warnings.

@kumaraditya303
Copy link
Contributor

The tests are failing.

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