[Python-Dev] Unittest/doctest formatting differences in 2.7a1? (original) (raw)
Lennart Regebro lregebro at jarn.com
Thu Dec 10 09:32:38 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 ]
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:
>>> throwanexception() Traceback (most recent call last): ... ...DesiredException: ... No you don't. From the manual: """ When the IGNOREEXCEPTIONDETAIL doctest option is is specified, everything following the leftmost colon is ignored. """
Note that the difference is before the leftmost colon.
On Thu, Dec 10, 2009 at 00:49, Ian Bicking <ianb at colorstudy.com> wrote:
Maybe that could be extended to also ignore everything up to a period (i.e., ignore the module name that seems to show up in 2.7 exception names, but not in previous versions).
That sounds good to me.
-- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64
- 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 ]