]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30764: regrtest: add --fail-env-changed option (#2402)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jun 2017 16:33:19 +0000 (18:33 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Jun 2017 14:09:42 +0000 (16:09 +0200)
commit1f33857a3677de84bdc6d80c39f577eb081ed85d
tree5e199214a947ccdd763e6a21c732909bf0d3520c
parent36946c06a3bdb1104c53f0fe535086572ffbdd9e
bpo-30764: regrtest: add --fail-env-changed option (#2402)

* bpo-30764: regrtest: change exit code on failure

* Exit code 2 if failed tests ("bad")
* Exit code 3 if interrupted

* bpo-30764: regrtest: add --fail-env-changed option

If the option is set, mark a test as failed if it alters the
environment, for example if it creates a file without removing it.

(cherry picked from commit 63f54c68936d648c70ca411661e4208329edcf26)
Lib/test/regrtest.py
Lib/test/test_regrtest.py