[issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.

Mark Smith report at bugs.python.org
Mon Aug 2 14:43:28 CEST 2010


New submission from Mark Smith <mark.smith at practicalpoetry.co.uk>:

When running tests with -v, the test runner prints out the docstring of each test method, if present, and falls back to the method name if it's not present.

Test methods wrapped with @expectedFailure do not print out their docstring, so it looks like the docstring is not copied to the wrapper function.

Failing test coming soon, hopefully followed by a patch to fix :)

----------
components: Tests
messages: 112457
nosy: mark.smith
priority: normal
severity: normal
status: open
title: unittest.expectedFailure decorator does not maintain target function's docstring.
type: performance
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9454>
_______________________________________


More information about the Python-bugs-list mailing list