[issue21183] Doctest capture only AssertionError but not printed text

Tim Peters report at bugs.python.org
Wed Apr 9 04:26:03 CEST 2014


Tim Peters added the comment:

The first footnote in the docs explain this:

    Examples containing both expected output and an
    exception are not supported. Trying to guess where
    one ends and the other begins is too error-prone,
    and that also makes for a confusing test.

So, sorry, but this is intentionally not supported.

----------
nosy: +tim.peters

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


More information about the Python-bugs-list mailing list