From 8f3348765250254714ddf51d0a3026c14174b70d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 3 Nov 2020 01:30:51 +0100 Subject: [PATCH] _prunetraceback is only called without --fulltrace --- src/_pytest/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 189dcc1a34a..8a0b70e2312 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -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