Skip to content

Commit

Permalink
Fix warning stack level
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Sep 14, 2017
1 parent 8b9fd3a commit 0d5fd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pluggy/callers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def excinfo(self):
def result(self):
"""Get the result(s) for this hook call (DEPRECATED in favor of ``get_result()``)."""
msg = 'Use get_result() which forces correct exception handling'
warnings.warn(DeprecationWarning(msg))
warnings.warn(DeprecationWarning(msg), stacklevel=2)
return self._result

@classmethod
Expand Down

0 comments on commit 0d5fd6a

Please sign in to comment.