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 ethan.furman
Recipients ethan.furman
Date 2022-03-26.20:56:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648328192.86.0.657883961617.issue47133@roundup.psfhosted.org>
In-reply-to
Content
When running unittest with the -v flag, if a test has errors, and has a docstring, the test name is shown on one line, and the docstring is shown on the next line -- and the ERROR word is shown with the docstring.

What this means is that:
- the test name is easily missed by anyone who isn't aware of that (I only recently found out when someone else pointed it out to me)
- grepping for ERROR doesn't reveal the test name, necessitating a search through the testing code to find the test that failed

There are two possible solutions, and the selection of which one should be discussed on python-dev:
- print the name and docstring, and ERROR, all on one line; or
- provide a command-line switch to select that behavior

---

For the experienced developers who see this:  please leave the issue for one of the new developers subscribed to core-mentorship.  Thank you.
History
Date User Action Args
2022-03-26 20:56:32ethan.furmansetrecipients: + ethan.furman
2022-03-26 20:56:32ethan.furmansetmessageid: <1648328192.86.0.657883961617.issue47133@roundup.psfhosted.org>
2022-03-26 20:56:32ethan.furmanlinkissue47133 messages
2022-03-26 20:56:32ethan.furmancreate