[Python-Dev] Unittest/doctest formatting differences in 2.7a1?
p.f.moore at gmail.com
Thu Dec 10 20:50:52 CET 2009
2009/12/10 Lennart Regebro <lregebro at jarn.com>:
> On Thu, Dec 10, 2009 at 00:47, Paul Moore <p.f.moore at gmail.com> wrote:
>>> I think so, but what you need is:
>>>> >>> throw_an_exception()
>>>> Traceback (most recent call last):
>>>> ...DesiredException: ...
>> No you don't. From the manual:
>> When the IGNORE_EXCEPTION_DETAIL doctest option is is specified,
>> everything following the leftmost colon is ignored.
> Note that the difference is *before* the leftmost colon.
Ah, sorry. I missed that important point...
More information about the Python-Dev