Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some __tracebackhide__ statements expected by pytest #80

Merged
merged 1 commit into from
Sep 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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