Files
pytest2/testing
Ran Benita e3b1799766 code: handle repr'ing empty tracebacks gracefully
By "empty traceback" I mean a traceback all of whose entries have been
filtered/cut/pruned out.

Currently, if an empty traceback needs to be repr'ed, the last entry
before the filtering is used instead (added in
accd962c9f).

Showing a hidden frame is not so good IMO. This commit does the
following instead:

1. Shows details of the exception.
2. Shows a message about how the full trace can be seen.

Example:

```
_____________ test _____________

E   ZeroDivisionError: division by zero
All traceback entries are hidden. Pass `--full-trace` to see hidden and internal frames.
```

Also handles `--tb=native`, though there the `--full-trace` bit is not
shown.

This commit contains some pieces from
431ec6d34e (which has been reverted).

Helps towards fixing issue # 1904.

Co-authored-by: Felix Hofstätter <Felhof1@hotmail.com>
2023-04-13 19:11:37 +03:00
..
2022-11-15 08:53:23 -03:00
2021-03-07 15:01:39 +01:00
2020-08-03 10:10:43 +03:00
2023-01-04 10:30:28 +01:00
2023-03-17 21:58:26 +01:00
2022-10-14 13:53:06 -04:00
2020-10-05 18:33:17 -07:00
2021-12-28 10:11:35 +01:00
2021-12-27 09:23:15 -03:00
2023-03-17 21:58:26 +01:00