Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in TestResult.addError and TestResult.addFailure #45808

Closed
draghuram mannequin opened this issue Nov 19, 2007 · 2 comments
Closed

error in TestResult.addError and TestResult.addFailure #45808

draghuram mannequin opened this issue Nov 19, 2007 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@draghuram
Copy link
Mannequin

draghuram mannequin commented Nov 19, 2007

BPO 1467
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-11-24.11:39:37.796>
created_at = <Date 2007-11-19.20:23:59.343>
labels = ['docs']
title = 'error in TestResult.addError and TestResult.addFailure'
updated_at = <Date 2007-11-24.11:39:37.794>
user = 'https://bugs.python.org/draghuram'

bugs.python.org fields:

activity = <Date 2007-11-24.11:39:37.794>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2007-11-24.11:39:37.796>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2007-11-19.20:23:59.343>
creator = 'draghuram'
dependencies = []
files = []
hgrepos = []
issue_num = 1467
keywords = []
message_count = 2.0
messages = ['57663', '57802']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'draghuram']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1467'
versions = ['Python 2.6']

@draghuram
Copy link
Mannequin Author

draghuram mannequin commented Nov 19, 2007

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.

@draghuram draghuram mannequin added the docs Documentation in the Doc dir label Nov 19, 2007
@birkenfeld
Copy link
Member

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

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant