This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benf_wspdigital
Recipients benf_wspdigital, brian, louielu
Date 2017-04-27.06:10:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493273411.86.0.697759251745.issue30181@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.”.
History
Date User Action Args
2017-04-27 06:10:11benf_wspdigitalsetrecipients: + benf_wspdigital, brian, louielu
2017-04-27 06:10:11benf_wspdigitalsetmessageid: <1493273411.86.0.697759251745.issue30181@psf.upfronthosting.co.za>
2017-04-27 06:10:11benf_wspdigitallinkissue30181 messages
2017-04-27 06:10:11benf_wspdigitalcreate