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 ebe8eef commit f37a5a9Copy full SHA for f37a5a9
testinfra/main.py
@@ -16,5 +16,5 @@
16
17
18
def main():
19
- warnings.warn("calling testinfra is deprecated, call py.test instead")
+ warnings.warn("calling testinfra is deprecated, call py.test instead", stacklevel=1)
20
return pytest.main()
testinfra/modules/pip.py
@@ -147,7 +147,8 @@ def _deprecated():
147
"""Raise a `DeprecationWarning`"""
148
warnings.warn(
149
"Calling host.pip_package is deprecated, call host.pip instead",
150
- DeprecationWarning,
+ category=DeprecationWarning,
151
+ stacklevel=2,
152
)
153
154
@classmethod
0 commit comments