Commit 8dea74f1 authored by Ezio Melotti's avatar Ezio Melotti

#25687: clarify that errors in tearDown increase the total number of reported...

#25687: clarify that errors in tearDown increase the total number of reported errors.  Initial patch by HyeSoo Park.
parent 4d028966
...@@ -680,10 +680,12 @@ Test cases ...@@ -680,10 +680,12 @@ Test cases
Method called immediately after the test method has been called and the Method called immediately after the test method has been called and the
result recorded. This is called even if the test method raised an result recorded. This is called even if the test method raised an
exception, so the implementation in subclasses may need to be particularly exception, so the implementation in subclasses may need to be particularly
careful about checking internal state. Any exception, other than :exc:`AssertionError` careful about checking internal state. Any exception, other than
or :exc:`SkipTest`, raised by this method will be considered an error rather than a :exc:`AssertionError` or :exc:`SkipTest`, raised by this method will be
test failure. This method will only be called if the :meth:`setUp` succeeds, considered an additional error rather than a test failure (thus increasing
regardless of the outcome of the test method. The default implementation does nothing. 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() .. method:: setUpClass()
......
...@@ -1087,6 +1087,7 @@ M. Papillon ...@@ -1087,6 +1087,7 @@ M. Papillon
Peter Parente Peter Parente
Alexandre Parenteau Alexandre Parenteau
Dan Parisien Dan Parisien
HyeSoo Park
William Park William Park
Claude Paroz Claude Paroz
Heikki Partanen Heikki Partanen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment