]> granicus.if.org Git - python/commit
Added an "exc_msg" attribute to Example (containing the expected
authorEdward Loper <edloper@gradient.cis.upenn.edu>
Thu, 26 Aug 2004 00:05:43 +0000 (00:05 +0000)
committerEdward Loper <edloper@gradient.cis.upenn.edu>
Thu, 26 Aug 2004 00:05:43 +0000 (00:05 +0000)
commita6b68327b2aab767197f513c18abb5db496241d7
tree4e6a221f32a906d97c395ef394a1754895d0b0a0
parentc5625bac6868dfbc34c89baa4bd826c4807a9e1b
Added an "exc_msg" attribute to Example (containing the expected
exception message, or None if no exception is expected); and moved
exception parsing from DocTestRunner to DocTestParser.  This is
architecturally cleaner, since it moves all parsing work to
DocTestParser; and it should make it easier for code outside
DocTestRunner (notably debugging code) to properly handle expected
exceptions.
Lib/doctest.py
Lib/test/test_doctest.py