[issue25998] doctest crashes when accessing __wrapped__ fails other than AttributeError

Lasse Schuirmann report at bugs.python.org
Mon Jan 4 11:51:45 EST 2016


Lasse Schuirmann added the comment:

Sorry for giving it the wrong category.

I personally think both projects should solve this. IMO it would be nice if doctest is robust against modules that for some reason (be they ill designed or not; I guess if you search a lot you find a project that needs to raise a custom exception when accessing `__wrapped__`). At the same time I do think the Flask request object could handle this better but lack the ability to explain that to them with substantial reasoning.

The problem is that both of you don't want to solve this problem at their side, @steven.daprano, would you mind speaking with the Flask people directly? I'm not affiliated to them.

----------

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


More information about the Python-bugs-list mailing list