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 if they're doctestable functions - and apparently only catches the `AttributeError` exception. Thus it crashes :)
---------- components: Tests files: shell messages: 257378 nosy: Lasse Schuirmann priority: normal severity: normal status: open title: doctest crashes when accessing __wrapped__ fails other than AttributeError type: crash versions: Python 3.5 Added file: http://bugs.python.org/file41477/shell _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25998> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com