mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Using DeprecationWarning instead of FutureWarning.
This commit is contained in:
parent
2ccda334e6
commit
60a97b6236
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ def extension_deprecation_message(version, extension_name, extension_repo):
|
|||
"functionality will be removed in version {version} in favor of the "
|
||||
f"saltext.{extension_name} Salt Extension. "
|
||||
f"({extension_repo})",
|
||||
category=FutureWarning,
|
||||
category=DeprecationWarning,
|
||||
)
|
||||
return function(*args, **salt.utils.args.clean_kwargs(**kwargs))
|
||||
|
||||
|
|
|
@ -24,5 +24,5 @@ def test_extension_deprecation():
|
|||
assert ret
|
||||
|
||||
assert len(catch_warnings) == 1
|
||||
assert issubclass(catch_warnings[-1].category, FutureWarning)
|
||||
assert issubclass(catch_warnings[-1].category, DeprecationWarning)
|
||||
assert str(catch_warnings[-1].message) == expected_deprecation_message
|
||||
|
|
Loading…
Add table
Reference in a new issue