[Python-Dev] Unittest/doctest formatting differences in 2.7a1? (original) (raw)
Paul Moore p.f.moore at gmail.com
Thu Dec 10 00:47:37 CET 2009
- Previous message: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?
- Next message: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/12/9 Lennart Regebro <lregebro at jarn.com>:
On Wed, Dec 9, 2009 at 18:45, Ian Bicking <ianb at colorstudy.com> wrote:
It's about time doctest got another run of development anyway. I can imagine a couple features that might help: * Already in there, but sometimes hard to enable, is ellipsis. Can you already do this?
>>> throwanexception() Traceback (most recent call last): ... DesiredException: ... I think so, but what you need is: >>> throwanexception() 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. """
So just use #doctest: +IGNORE_EXCEPTION_DETAIL
Paul.
- Previous message: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?
- Next message: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]