]> granicus.if.org Git - python/commit
threading_cleanup() failure marks test as ENV_CHANGED (#2500)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 30 Jun 2017 08:59:52 +0000 (10:59 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2017 08:59:52 +0000 (10:59 +0200)
commit21a0a6c9f8a047b6eb173ee59e38ad5dc3c46f86
tree996667d7cce31a2de36dbd894138939e38346c63
parent729780a810bbcb12b245a1b652302a601fc9f6fd
threading_cleanup() failure marks test as ENV_CHANGED (#2500)

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.
Lib/test/libregrtest/runtest.py
Lib/test/libregrtest/save_env.py
Lib/test/support/__init__.py