Skip to content

Commit 7fada71

Browse files
committed
docs(output): Note --no-show-locals
1 parent 3a8d401 commit 7fada71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/en/how-to/output.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Examples for modifying traceback printing:
1212

1313
.. code-block:: bash
1414
15-
pytest --showlocals # show local variables in tracebacks
16-
pytest -l # show local variables (shortcut)
15+
pytest --showlocals # show local variables in tracebacks
16+
pytest -l # show local variables (shortcut)
17+
pytest --no-showlocals # hide local variables (if addopts enables them)
1718
1819
pytest --tb=auto # (default) 'long' tracebacks for the first and last
1920
# entry, but 'short' style for the other entries

0 commit comments

Comments
 (0)