[New-bugs-announce] [issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.
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 :)
title: unittest.expectedFailure decorator does not maintain target function's docstring.
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce