File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 94
94
* Fix formatting utf-8 explanation messages (`#1379 `_).
95
95
Thanks `@biern `_ for the PR.
96
96
97
- *
97
+ * Fix `traceback style docs `_ to describe all of the available options
98
+ (auto/long/short/line/native/no), with `auto ` being the default since v2.6.
99
+ Thanks `@hackebrot `_ for the PR.
98
100
99
101
*
100
102
101
103
*
102
104
103
105
*
104
106
107
+ .. _`traceback style docs` : https://pytest.org/latest/usage.html#modifying-python-traceback-printing
108
+
105
109
.. _#1379 : https://github.com/pytest-dev/pytest/issues/1379
106
110
.. _#1366 : https://github.com/pytest-dev/pytest/issues/1366
107
111
.. _#1040 : https://github.com/pytest-dev/pytest/pull/1040
124
128
.. _@tomviner : https://github.com/tomviner
125
129
.. _@RonnyPfannschmidt : https://github.com/RonnyPfannschmidt
126
130
.. _@rabbbit : https://github.com/rabbbit
131
+ .. _@hackebrot : https://github.com/hackebrot
127
132
128
133
2.8.7
129
134
-----
Original file line number Diff line number Diff line change @@ -66,10 +66,13 @@ Examples for modifying traceback printing::
66
66
py.test --showlocals # show local variables in tracebacks
67
67
py.test -l # show local variables (shortcut)
68
68
69
- py.test --tb=long # the default informative traceback formatting
70
- py.test --tb=native # the Python standard library formatting
71
- py.test --tb=short # a shorter traceback format
69
+ py.test --tb=auto # (default) 'long' tracebacks for the first and last
70
+ # entry, but 'short' style for the other entries
71
+ py.test --tb=long # exhaustive, informative traceback formatting
72
+ py.test --tb=short # shorter traceback format
72
73
py.test --tb=line # only one line per failure
74
+ py.test --tb=native # Python standard library formatting
75
+ py.test --tb=no # no traceback at all
73
76
74
77
Dropping to PDB _ (Python Debugger) on failures
75
78
-----------------------------------------------
You can’t perform that action at this time.
0 commit comments