nose-devs/nose — Issue #68: Better handling of multiline docstrings
Author: jpellerin
Created: 2011-12-14 15:57:48+00:00
State: open

When nose is run in verbose mode, it displays the first line of the
docstring of test methods if possible. It works well for the following kind
of docstring formatting:
"""blah
foo"""
(i.e. it prints "blah")

However it doesn't work with the following kind of docstring formatting (it
thinks the first line is empty while "blah" should be printed):
"""
blah
foo
"""

The solution is to strip() the docstring before extracting its first line.
I thought this would be an easy fix :-) but I couldn't find the place where
this docstring extraction takes place in nose. Perhaps it's in unittest itself?
In any case, this would be nice to have a fix in nose to fix this
inconsistency.

Google Code Info:
Issue #: 50
Author: antoine....@gmail.com
Created On: 2007-04-12T11:14:31.000Z
Closed On: 2007-09-09T14:34:13.000Z