diff --git a/pluggy/callers.py b/pluggy/callers.py index 642bbcc2..517fcf68 100644 --- a/pluggy/callers.py +++ b/pluggy/callers.py @@ -31,6 +31,7 @@ def __init__(self, result, excinfo): @classmethod def from_call(cls, func): + __tracebackhide__ = True result = excinfo = None try: result = func() @@ -44,6 +45,7 @@ def force_result(self, result): self.excinfo = None def get_result(self): + __tracebackhide__ = True if self.excinfo is None: return self.result else: @@ -63,6 +65,7 @@ def __init__(self, hook_impls, kwargs, specopts={}, hook=None): self.specopts = hook.spec_opts if hook else specopts def execute(self): + __tracebackhide__ = True caller_kwargs = self.caller_kwargs self.results = results = [] firstresult = self.specopts.get("firstresult")