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

2016-01-04 Thread Lasse Schuirmann
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

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

2016-01-02 Thread Lasse Schuirmann
Lasse Schuirmann added the comment: (Closed) issue at the flask repository of this: https://github.com/mitsuhiko/flask/issues/1680 Also IIRC this worked back with Python 3.4 but do not consider this a fact yet. (At least the tests ran on Fedora

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

2016-01-02 Thread Lasse Schuirmann
New submission from Lasse Schuirmann: You can see this when importing the Flask `request` object in a file that is doctested. The `request` object will throw a RuntimeError when one tries to access any attribute. Doctest tries to `inspect.unwrap` all objects in the file in order to find out