]> granicus.if.org Git - python/commit
doctest doesn't handle intentional SyntaxError exceptions gracefully,
authorTim Peters <tim.peters@gmail.com>
Sun, 24 Jun 2001 06:46:58 +0000 (06:46 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 24 Jun 2001 06:46:58 +0000 (06:46 +0000)
commit08bba953eacd60a011224ff633189f11291427b4
tree4cd5a2adfdb5538116d0f6efe54d087886e1ef4e
parentee30927b45385f0027b7a28e676efbb5bd239769
doctest doesn't handle intentional SyntaxError exceptions gracefully,
because it picks up the first line of traceback.format_exception_only()
instead of the last line.  Pick up the last line instead!
Lib/doctest.py