[WIP][3.6] bpo-31259: Enhance support reap_children() and threading_cleanup() by vstinner · Pull Request #3185 · python/cpython (original) (raw)
If threading_cleanup() fails to cleanup threads, set a a new support.environment_altered flag to true, flag uses by save_env which is used by regrtest to check if a test altered the environment. At the end, the test file fails with ENV_CHANGED instead of SUCCESS, to report that it altered the environment.
(cherry picked from commit 21a0a6c)
- reap_children() now sets environment_altered to True to detect bugs using python3 -m test --fail-env-changed
- Replace bare "except:" with "except OSError:" in reap_children()
- Write an unit test for reap_children() using a timeout of 60 seconds
(cherry picked from commit b501147)
(cherry picked from commit b97d99c)
vstinner changed the title
[3.6] bpo-31259: Enhance support reap_children() and threading_cleanup() [WIP][3.6] bpo-31259: Enhance support reap_children() and threading_cleanup()
I abandon my change. See the issue for the rationale.