Message416090
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. |
|
Date |
User |
Action |
Args |
2022-03-26 20:56:32 | ethan.furman | set | recipients:
+ ethan.furman |
2022-03-26 20:56:32 | ethan.furman | set | messageid: <1648328192.86.0.657883961617.issue47133@roundup.psfhosted.org> |
2022-03-26 20:56:32 | ethan.furman | link | issue47133 messages |
2022-03-26 20:56:32 | ethan.furman | create | |
|