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