]> granicus.if.org Git - python/commit
Only recognize the expected output as an exception if it *starts* with
authorEdward Loper <edloper@gradient.cis.upenn.edu>
Wed, 25 Aug 2004 23:07:03 +0000 (23:07 +0000)
committerEdward Loper <edloper@gradient.cis.upenn.edu>
Wed, 25 Aug 2004 23:07:03 +0000 (23:07 +0000)
commit19b1958730f290ad6bf309653d76f222906f0c41
treec55dcc59d2602f07eec240a998fd433353434831
parentd2afee47b13854c265a5fb8eb5a53daf7b27ecf9
Only recognize the expected output as an exception if it *starts* with
a traceback message.  I.e., examples that raise exceptions may no
longer generate pre-exception output.  This restores the behavior of
doctest in python 2.3.  The ability to check pre-exception output is
being removed because it makes the documentation simpler; and because
there are very few use cases for it.
Doc/lib/libdoctest.tex
Lib/doctest.py
Lib/test/test_doctest.py