cpython/Lib/test/test_concurrent_futures
Rani Pinchuk fd8f42d3d1
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.
2025-08-26 15:33:21 +02:00
..
__init__.py gh-71052: fix test_concurrent_futures wasi regression. (#115923) 2024-02-26 00:02:56 +00:00
executor.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00
test_as_completed.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00
test_deadlock.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00
test_future.py gh-134173: optimize state transfer between concurrent.futures.Future and asyncio.Future (#134174) 2025-05-18 21:26:20 +05:30
test_init.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00
test_interpreter_pool.py gh-136470: Correct InterpreterPoolExecutor's default thread name (GH-136472) 2025-07-20 23:34:32 +00:00
test_process_pool.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00
test_shutdown.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00
test_thread_pool.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00
test_wait.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00
util.py gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796) 2025-08-26 15:33:21 +02:00