We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9fd3a commit 0d5fd6aCopy full SHA for 0d5fd6a
pluggy/callers.py
@@ -37,7 +37,7 @@ def excinfo(self):
37
def result(self):
38
"""Get the result(s) for this hook call (DEPRECATED in favor of ``get_result()``)."""
39
msg = 'Use get_result() which forces correct exception handling'
40
- warnings.warn(DeprecationWarning(msg))
+ warnings.warn(DeprecationWarning(msg), stacklevel=2)
41
return self._result
42
43
@classmethod
0 commit comments