Pytest should display PEP-678 exception notes in long
, auto
, and short
traceback print modes
#9896
Labels
topic: reporting
related to terminal output and user-facing messages and errors
type: enhancement
new feature or API change, should be merged into features branch
Pytest has six traceback print modes -
auto
(the default),long
,short
,no
,line
, ornative
- which can be selected with the--tb=
command-line option. Currently, PEP-678 notes are only displayed innative
mode, which is likely to become a problem as various libraries add notes (e.g. here). Ideally, we could get support out to most pytest users before Python 3.11 final, so that everything just works.I think that we probably don't want to display notes in
line
orno
modes, but the others should.The text was updated successfully, but these errors were encountered: