Skip to content

Commit

Permalink
Add quick comment and improve CHANGELOG a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Sep 13, 2019
1 parent 13b9107 commit 1ac5267
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog/5811.bugfix.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Handle --fulltrace with pytest.raises.
Handle ``--fulltrace`` correctly with ``pytest.raises``.
5 changes: 4 additions & 1 deletion src/_pytest/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,15 @@ def _repr_failure_py(self, excinfo, style=None):
except OSError:
abspath = True

# traceback has been pruned at this point already if not in --fulltrace mode
tbfilter = False

return excinfo.getrepr(
funcargs=True,
abspath=abspath,
showlocals=self.config.getoption("showlocals", False),
style=style,
tbfilter=False,
tbfilter=tbfilter,
truncate_locals=truncate_locals,
)

Expand Down

0 comments on commit 1ac5267

Please sign in to comment.