From a95fe3693b9b2835d2bcff0916cd828c6bb4ac9e Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Sat, 27 Feb 2016 20:54:09 +0000 Subject: [PATCH] Add auto to tb styles (new default since v2.6) --- doc/en/usage.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/en/usage.rst b/doc/en/usage.rst index b8abb87e9..4b92fd1e1 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -66,10 +66,13 @@ Examples for modifying traceback printing:: py.test --showlocals # show local variables in tracebacks py.test -l # show local variables (shortcut) - py.test --tb=long # the default informative traceback formatting - py.test --tb=native # the Python standard library formatting - py.test --tb=short # a shorter traceback format + py.test --tb=auto # (default) 'long' tracebacks for the first and last + # entry, but 'short' style for the other entries + py.test --tb=long # exhaustive, informative traceback formatting + py.test --tb=short # shorter traceback format py.test --tb=line # only one line per failure + py.test --tb=native # Python standard library formatting + py.test --tb=no # no traceback at all Dropping to PDB_ (Python Debugger) on failures -----------------------------------------------