This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: error in TestResult.addError and TestResult.addFailure
Type: Stage:
Components: Documentation Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: draghuram, georg.brandl
Priority: normal Keywords:

Created on 2007-11-19 20:23 by draghuram, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg57663 - (view) Author: Raghuram Devarakonda (draghuram) (Python triager) Date: 2007-11-19 20:23
The page at
http://docs.python.org/dev/library/unittest.html#module-unittest says:

-------------
TestResult.addError(test, err)

    Called when the test case test raises an unexpected exception err is
a tuple of the form returned by sys.exc_info(): (type, value, traceback).

    The default implementation appends (test, err) to the instance's
errors attribute.
--------------

Starting from 2.2, a formatted traceback is added to the "error"
attribute instead of the actual sys.exc_info(). The same error is
present for addFailure() as well.
msg57802 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-11-24 11:39
Thanks, this is now fixed in the development docs (r59165).
History
Date User Action Args
2022-04-11 14:56:28adminsetgithub: 45808
2007-11-24 11:39:37georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg57802
nosy: + georg.brandl
2007-11-19 20:23:59draghuramcreate