[issue19138] doctest.IGNORE_EXCEPTION_DETAIL doesn't match when no detail exists

Tim Peters report at bugs.python.org
Tue Dec 3 23:41:48 CET 2013


Tim Peters added the comment:

On second thought, I don't want to use a regexp for this.  The mandatory colon _was_ a kind of absolute wall, and the various instances of "[^:]" exploited that to avoid unintended matches.

But "possibly dotted name followed possibly by a colon" is straightforward to get right with a pair of simple string searches, so I'll introduce a new `_strip_exception_details()` function instead.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19138>
_______________________________________


More information about the Python-bugs-list mailing list