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 jaraco
Recipients jaraco
Date 2021-12-18.23:08:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639868904.15.0.52665025329.issue46126@roundup.psfhosted.org>
In-reply-to
Content
In https://github.com/python/importlib_metadata/issues/302, I learned that the way unittest reports failures in tests is incentivizing the replacement of docstrings with comments in order not to make resolution of the relevant failing test more difficult to locate.

I presume I don't need to explain why docstrings are nice and preferable over comments.

Better would be for unittest to provide an option to ignore the docstrings or to emit the test path regardless of whether a docstring was present and to employ that option in CPython, allowing for docstrings in tests.
History
Date User Action Args
2021-12-18 23:08:24jaracosetrecipients: + jaraco
2021-12-18 23:08:24jaracosetmessageid: <1639868904.15.0.52665025329.issue46126@roundup.psfhosted.org>
2021-12-18 23:08:24jaracolinkissue46126 messages
2021-12-18 23:08:24jaracocreate