summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-11-24 11:39:13 (GMT)
committerGeorg Brandl <georg@python.org>2007-11-24 11:39:13 (GMT)
commit586edab2795f6926902c4fb8e378c0c704b9920e (patch)
tree1bc45b608aac27136e0502df8822acc65130c598 /Doc
parent439f250c00d9cecb9559ca33e412a376ed010998 (diff)
downloadcpython-586edab2795f6926902c4fb8e378c0c704b9920e.zip
cpython-586edab2795f6926902c4fb8e378c0c704b9920e.tar.gz
cpython-586edab2795f6926902c4fb8e378c0c704b9920e.tar.bz2
#1467: fix documentation for TestResult.add{Error,Failure}.
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 3d3727f..90d32e2 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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)