Ben Finney added the comment:

> This is because unittest.TestCase method `shortDescription()` will only 
> return the first line of docstring

Yes, that is the “docstring synopsis” I referred to. PEP 257 has a section 
specifically about how tools should parse a docstring: 
https://www.python.org/dev/peps/pep-0257/#handling-docstring-indentation

In particular, note that “ Blank lines should be removed from the beginning and 
end of the docstring.”

So, the “first line of the docstring“ for the example 
‘test_reverse_returns_expected_text’ is the text “Should return expected 
reverse text.”.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to