SIGN IN SIGN UP

gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796)

Don't ignore errors raised by `PyErr_WarnFormat` in `warn_about_fork_with_threads`
Instead, ignore the warnings in all test code that forks. (That's a lot of functions.)

In `test_support`, make `ignore_warnings` a context manager (as well as decorator),
and add a `message` argument to it.
Also add a `ignore_fork_in_thread_deprecation_warnings` helper for the deadlock-in-fork
warning.
R
Rani Pinchuk committed
fd8f42d3d1038a812340c3ec3cbfc995a80c4e13
Parent: f60f822
Committed by GitHub <noreply@github.com> on 8/26/2025, 1:33:21 PM