summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/overview.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt
index cc55224761..3c45d509ae 100644
--- a/docs/topics/testing/overview.txt
+++ b/docs/topics/testing/overview.txt
@@ -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