I recall actually really liking the docstring. I think there are situations where the test name just can't be sufficiently explanatory. IIRC in the past we didn't print the docstring at all and it felt right when it was added.
ATM I'm not using unittest for anything so I don't have a strong opinion. On Sun, Mar 27, 2022 at 8:21 AM Eric V. Smith <[email protected]> wrote: > On 3/27/2022 10:51 AM, Jelle Zijlstra wrote: > > > > El sáb, 26 mar 2022 a las 17:51, Itay Yeshaya (<[email protected]>) > escribió: > >> >> Any thoughts on the mentioned solutions? >> > > This is a bit more out there, but can anyone explain why we show the > docstring at all? As far as I can tell it causes a bunch of confusion and > helps little. If there's a failing test, I want the test name so I can > quickly find it in the code; I don't want the docstring which may not even > be unique. > > > I think this is a good idea. The target audience for a docstring isn't the > people trying to track down failing tests. > > Eric > _______________________________________________ > Python-Dev mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/BTF4LZWVTHNHBJVNHXNWSPB2WS4324TO/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/LIZB53G6YT4NXEIWTPVP5BIPDWUC4S26/ Code of Conduct: http://python.org/psf/codeofconduct/
