summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2016-03-13 07:40:09 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2016-03-13 07:40:09 (GMT)
commit6066257c38c6930c40b558fad6a8d8627d049724 (patch)
tree530494f0dab64f525a124a48cf7472d1f3c0d3c8 /Doc
parentdeb1a90f2c292ee36a485333693f7264396405c1 (diff)
downloadcpython-6066257c38c6930c40b558fad6a8d8627d049724.zip
cpython-6066257c38c6930c40b558fad6a8d8627d049724.tar.gz
cpython-6066257c38c6930c40b558fad6a8d8627d049724.tar.bz2
#25687: clarify that errors in tearDown increase the total number of reported errors. Initial patch by HyeSoo Park.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 810eed6..cacbb3c 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -720,10 +720,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()