Skip to content

Commit

Permalink
Merge pull request #80 from nicoddemus/tracebackhide
Browse files Browse the repository at this point in the history
Add some __tracebackhide__ statements expected by pytest
  • Loading branch information
nicoddemus authored Sep 1, 2017
2 parents 00ab02e + 0b79d02 commit 03ff32e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pluggy/callers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, result, excinfo):

@classmethod
def from_call(cls, func):
__tracebackhide__ = True
result = excinfo = None
try:
result = func()
Expand All @@ -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:
Expand All @@ -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")
Expand Down

0 comments on commit 03ff32e

Please sign in to comment.