diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2016-03-13 07:40:09 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2016-03-13 07:40:09 (GMT) |
commit | 8dea74f12aab7d0690d98037824c4a6d5d5cd1f7 (patch) | |
tree | 52461a2ffe647bdc9e876385b9af2b1bf1092224 /Doc/library | |
parent | 4d02896609f6c92458ce292bf3aa77cfd403dee3 (diff) | |
download | cpython-8dea74f12aab7d0690d98037824c4a6d5d5cd1f7.zip cpython-8dea74f12aab7d0690d98037824c4a6d5d5cd1f7.tar.gz cpython-8dea74f12aab7d0690d98037824c4a6d5d5cd1f7.tar.bz2 |
#25687: clarify that errors in tearDown increase the total number of reported errors. Initial patch by HyeSoo Park.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/unittest.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 9647b4b..e076be6 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -680,10 +680,12 @@ Test cases Method called immediately after the test method has been called and the result recorded. This is called even if the test method raised an exception, so the implementation in subclasses may need to be particularly - careful about checking internal state. Any exception, other than :exc:`AssertionError` - or :exc:`SkipTest`, raised by this method will be considered an error rather than a - test failure. This method will only be called if the :meth:`setUp` succeeds, - regardless of the outcome of the test method. The default implementation does nothing. + careful about checking internal state. Any exception, other than + :exc:`AssertionError` or :exc:`SkipTest`, raised by this method will be + considered an additional error rather than a test failure (thus increasing + the total number of reported errors). This method will only be called if + the :meth:`setUp` succeeds, regardless of the outcome of the test method. + The default implementation does nothing. .. method:: setUpClass() |