[issue22710] doctest exceptions include nondeterministic namespace

David Barnett report at bugs.python.org
Thu Oct 23 18:21:16 CEST 2014


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 useless. Plus it's very noisy to slap "# doctest: +IGNORE_EXCEPTION_DETAIL" everywhere just to get not-pathological behavior.

And this isn't even just about py2/py3 interoperability. It's a problem for my py3-only project, which fails depending on how I invoke doctests. So it's not just something we can hack around until py2 goes away and be fine.

Can't a separate option be added for just the module name and enabled by default?

----------

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


More information about the Python-bugs-list mailing list