[WIP][3.6] bpo-31259: Enhance support reap_children() and threading_cleanup() by vstinner · Pull Request #3185 · python/cpython (original) (raw)

vstinner

@vstinner

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)

@vstinner

(cherry picked from commit b501147)

@vstinner

(cherry picked from commit b97d99c)

@vstinner 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()

Aug 22, 2017

@vstinner

I abandon my change. See the issue for the rationale.