Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1467] error in TestResult.addError and TestResult.addFailure

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 19, 2007, 12:23 PM

Post #1 of 2 (168 views)
Permalink
[issue1467] error in TestResult.addError and TestResult.addFailure

New submission from Raghuram Devarakonda:

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.

----------
components: Documentation
messages: 57663
nosy: draghuram
severity: minor
status: open
title: error in TestResult.addError and TestResult.addFailure
versions: Python 2.6

__________________________________
Tracker <report [at] bugs>
<http://bugs.python.org/issue1467>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 24, 2007, 3:39 AM

Post #2 of 2 (141 views)
Permalink
[issue1467] error in TestResult.addError and TestResult.addFailure [In reply to]

Georg Brandl added the comment:

Thanks, this is now fixed in the development docs (r59165).

----------
nosy: +georg.brandl
resolution: -> fixed
status: open -> closed

__________________________________
Tracker <report [at] bugs>
<http://bugs.python.org/issue1467>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.