Ignore some pkg_resources related DeprecationWarnings

There's nothing Salt can do, they are triggered by it's dependencies.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-11-22 18:30:22 +00:00 committed by Pedro Algarvio
parent a2228b9751
commit 5e125028c9

View file

@ -118,6 +118,17 @@ warnings.filterwarnings(
category=DeprecationWarning,
)
warnings.filterwarnings(
"ignore",
"Deprecated call to `pkg_resources.declare_namespace.*",
category=DeprecationWarning,
)
warnings.filterwarnings(
"ignore",
".*pkg_resources is deprecated as an API.*",
category=DeprecationWarning,
)
def __define_global_system_encoding_variable__():
import sys