Commit 586edab2 authored by Georg Brandl's avatar Georg Brandl

#1467: fix documentation for TestResult.add{Error,Failure}.

parent 439f250c
......@@ -814,8 +814,9 @@ tools which support interactive reporting while tests are being run.
Called when the test case *test* raises an unexpected exception *err* is a tuple
of the form returned by :func:`sys.exc_info`: ``(type, value, traceback)``.
The default implementation appends ``(test, err)`` to the instance's ``errors``
attribute.
The default implementation appends a tuple ``(test, formatted_err)`` to the
instance's ``errors`` attribute, where *formatted_err* is a formatted
traceback derived from *err*.
.. method:: TestResult.addFailure(test, err)
......@@ -823,8 +824,9 @@ tools which support interactive reporting while tests are being run.
Called when the test case *test* signals a failure. *err* is a tuple of the form
returned by :func:`sys.exc_info`: ``(type, value, traceback)``.
The default implementation appends ``(test, err)`` to the instance's
``failures`` attribute.
The default implementation appends a tuple ``(test, formatted_err)`` to the
instance's ``failures`` attribute, where *formatted_err* is a formatted
traceback derived from *err*.
.. method:: TestResult.addSuccess(test)
......
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