New submission from Ethan Furman <et...@stoneleaf.us>:
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. ---------- components: Tests messages: 416090 nosy: ethan.furman priority: low severity: normal stage: needs patch status: open title: enhance unittest to show test name and docstring on one line type: enhancement versions: Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue47133> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com