Using DeprecationWarning instead of FutureWarning.

This commit is contained in:
Gareth J. Greenaway 2023-06-28 14:42:57 -07:00 committed by Megan Wilhite
parent 2ccda334e6
commit 60a97b6236
2 changed files with 2 additions and 2 deletions

View file

@ -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))

View file

@ -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