[issue46126] Unittest output drives developers to avoid docstrings

Jason R. Coombs report at bugs.python.org
Tue Mar 22 18:09:19 EDT 2022


Jason R. Coombs <jaraco at jaraco.com> added the comment:

Inada, you're right. Good catch. I think I missed that behavior from before because I used `grep ERROR` and when I ran it this time, I just assumed the output would be the same, but it's clear that even _with descriptions enabled_, the location of the test is clearly reported in the case of launching with `-m unittest`.

I'm now suspicious that my report in https://bugs.python.org/issue46126#msg408882 was also flawed as it uses `grep ERROR`, which could easily mask lines that adjacent to the error.

I now believe that there are no concerns relating to Terry's concern, and likely not Brett's concern despite my best efforts to replicate. I'll bring back the original example and see if it in fact has the reported defect.

----------
assignee: terry.reedy -> jaraco

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46126>
_______________________________________


More information about the Python-bugs-list mailing list