Skip to content

Commit

Permalink
_prunetraceback is only called without --fulltrace
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 3, 2020
1 parent 5a7dd10 commit 8f33487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ def setup(self) -> None:
fixtures.fillfixtures(self)

def _prunetraceback(self, excinfo: ExceptionInfo) -> None:
if hasattr(self, "_obj") and not self.config.option.fulltrace:
if hasattr(self, "_obj"):
code = _pytest._code.Code(get_real_func(self.obj))
path, firstlineno = code.path, code.firstlineno
traceback = excinfo.traceback
Expand Down

0 comments on commit 8f33487

Please sign in to comment.