Skip to content

Instantly share code, notes, and snippets.

@go4Mor4
Created July 1, 2020 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save go4Mor4/8e2d42a94326e4cfa7fcc75057229452 to your computer and use it in GitHub Desktop.
Save go4Mor4/8e2d42a94326e4cfa7fcc75057229452 to your computer and use it in GitHub Desktop.
pytest --showlocals # show local variables in tracebacks
pytest -l # show local variables (shortcut)
pytest --tb=auto # (default) 'long' tracebacks for the first and last
# entry, but 'short' style for the other entries
pytest --tb=long # exhaustive, informative traceback formatting
pytest --tb=short # shorter traceback format
pytest --tb=line # only one line per failure
pytest --tb=native # Python standard library formatting
pytest --tb=no # no traceback at all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment