changeset: 100512:5e64ffe576a9 branch: 2.7 parent: 100502:9db5846f126d user: Ezio Melotti date: Sun Mar 13 09:40:09 2016 +0200 files: Doc/library/unittest.rst Misc/ACKS description: #25687: clarify that errors in tearDown increase the total number of reported errors. Initial patch by HyeSoo Park. diff -r 9db5846f126d -r 5e64ffe576a9 Doc/library/unittest.rst --- a/Doc/library/unittest.rst Sat Mar 12 08:07:04 2016 -0800 +++ b/Doc/library/unittest.rst Sun Mar 13 09:40:09 2016 +0200 @@ -720,10 +720,12 @@ 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() diff -r 9db5846f126d -r 5e64ffe576a9 Misc/ACKS --- a/Misc/ACKS Sat Mar 12 08:07:04 2016 -0800 +++ b/Misc/ACKS Sun Mar 13 09:40:09 2016 +0200 @@ -1034,6 +1034,7 @@ Peter Parente Alexandre Parenteau Dan Parisien +HyeSoo Park William Park Heikki Partanen Harri Pasanen