[Python-checkins] r46599 - python/trunk/Lib/test/test_exceptions.py

Jim Jewett jimjjewett at gmail.com
Fri Jun 2 19:38:55 CEST 2006


On 6/2/06, Guido van Rossum <guido at python.org> wrote:
> On 6/2/06, Tim Peters <tim.peters at gmail.com> wrote:
> > instead.  For that reason, most people avoid docstrings in unittest
> > test methods like plague.  regrtest has no control of its own over
> > unittest's output.

> Perhaps it's time to change this unittest behavior, or at least
> provide a flag to disable it?

Sounds good to me.

Should it ignore the docstring entirely, or just append (the first
line of) it to the method name?

In other words, given

    def testStupidData(...):
        """Ensure that certain nonsense input combinations don't cause a crash.

        Resolves bug 843, crash on negative height"""


Should the output be

    testStupidData

or

    testStupidData - Ensure that certain nonsense input combinations
don't cause a crash.

Or should I let this be controlled by verbosity level?  (verbosity 2
adding the string)

-jJ


More information about the Python-checkins mailing list