[Python-checkins] r59165 - python/trunk/Doc/library/unittest.rst
georg.brandl
python-checkins at python.org
Sat Nov 24 12:39:13 CET 2007
Author: georg.brandl
Date: Sat Nov 24 12:39:13 2007
New Revision: 59165
Modified:
python/trunk/Doc/library/unittest.rst
Log:
#1467: fix documentation for TestResult.add{Error,Failure}.
Modified: python/trunk/Doc/library/unittest.rst
==============================================================================
--- python/trunk/Doc/library/unittest.rst (original)
+++ python/trunk/Doc/library/unittest.rst Sat Nov 24 12:39:13 2007
@@ -814,8 +814,9 @@
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 @@
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)
More information about the Python-checkins
mailing list