-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
blueyed/pytest
#20Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
Code:
Lines 228 to 236 in cbc39dd
| try: | |
| result = func() | |
| except: # noqa | |
| excinfo = ExceptionInfo.from_current() | |
| if reraise is not None and excinfo.errisinstance(reraise): | |
| raise | |
| result = None | |
| stop = time() | |
| return cls(start=start, stop=stop, when=when, result=result, excinfo=excinfo) |
It would be good if exceptions being caught/handled there would still have the full traceback.
With Python 3.7 at least we could use types.TracebackType, and create entries based on the frame stack there then.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch