R. David Murray added the comment:
Not to 2.7, since that would be a new feature.
In Python we do not consider the content of an error message (as opposed to the
exception class itself) to be part of the API, so it is not surprising that
doctest does not really support checking it across versi
David Barnett added the comment:
But… that doesn't help. It completely changes the semantics of the doctests. I
have a bunch of doctests demonstrating different failures of the same exception
class, and with IGNORE_EXCEPTION_DETAIL running my doctests to verify they're
still correct is next to
R. David Murray added the comment:
It is not possible to work around it with ELLIPSIS. Look for the flag
'IGNORE_EXCEPTION_DETAIL', which is mentioned in the section you reference.
--
nosy: +r.david.murray
resolution: -> not a bug
stage: -> resolved
status: open -> closed
__
New submission from David Barnett:
doctests includes special exception processing support (described in
https://docs.python.org/3/library/doctest.html#what-about-exceptions), but in
python3 it seems to print the fully-qualified class name even for exception
classes in the same module, which ma