Skip to content

Commit

Permalink
State from which library the DeprecationWarning is coming from
Browse files Browse the repository at this point in the history
Fixes saltstack#9

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed Feb 17, 2022
1 parent 1860ff0 commit 5c5e757
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelog/9.improvement.rst
@@ -0,0 +1 @@
State from which library the ``DeprecationWarning`` is coming from.
4 changes: 2 additions & 2 deletions src/pytestshellutils/downgraded/utils/processes.py
Expand Up @@ -118,7 +118,7 @@ def exitcode(self) -> int:
"""
warn_until(
'2.0.0',
"The '.exitcode' property is deprecated and will cease to exist after {version}. Please use '.returncode' instead.",
"The '.exitcode' property is deprecated and will cease to exist after pytest-shell-utilities {version}. Please use '.returncode' instead.",
)
return self.returncode

Expand All @@ -133,7 +133,7 @@ def json(self) -> Optional[Dict[Any, Any]]:
"""
warn_until(
'2.0.0',
"The '.json' property is deprecated and will cease to exist after {version}. Please use '.returncode' instead.",
"The '.json' property is deprecated and will cease to exist after pytest-shell-utilities {version}. Please use '.returncode' instead.",
)
return self.data

Expand Down
8 changes: 4 additions & 4 deletions src/pytestshellutils/utils/processes.py
Expand Up @@ -118,8 +118,8 @@ def exitcode(self) -> int:
"""
warn_until(
"2.0.0",
"The '.exitcode' property is deprecated and will cease to exist after {version}. "
"Please use '.returncode' instead.",
"The '.exitcode' property is deprecated and will cease to exist after "
"pytest-shell-utilities {version}. Please use '.returncode' instead.",
)
return self.returncode

Expand All @@ -134,8 +134,8 @@ def json(self) -> Optional[Dict[Any, Any]]:
"""
warn_until(
"2.0.0",
"The '.json' property is deprecated and will cease to exist after {version}. "
"Please use '.returncode' instead.",
"The '.json' property is deprecated and will cease to exist after "
"pytest-shell-utilities {version}. Please use '.returncode' instead.",
)
return self.data

Expand Down

0 comments on commit 5c5e757

Please sign in to comment.