Fixed #33264 -- Made test runner return non-zero error code for unexpected successes.

This commit is contained in:
Baptiste Mispelon 2021-11-04 15:31:26 +01:00 committed by Mariusz Felisiak
parent 1a5023883b
commit 91acfc3514
6 changed files with 51 additions and 2 deletions

View file

@ -331,10 +331,15 @@ but it's pretty intuitive. You can consult the documentation of Python's
:mod:`unittest` library for details.
Note that the return code for the test-runner script is 1 for any number of
failed and erroneous tests. If all the tests pass, the return code is 0. This
failed tests (whether the failure was caused by an error, a failed assertion,
or an unexpected success). If all the tests pass, the return code is 0. This
feature is useful if you're using the test-runner script in a shell script and
need to test for success or failure at that level.
.. versionchanged:: 4.1
In older versions, the return code was 0 for unexpected successes.
.. _speeding-up-tests-auth-hashers:
Speeding up the tests