chore: ignore warning from pkg_resources.declare_namespace

Related issue: https://github.com/openedx/edx-platform/issues/33592
This commit is contained in:
Daniel Valenzuela
2023-10-25 20:32:00 -03:00
parent 115c65aa18
commit 9752da2b03
4 changed files with 23 additions and 0 deletions

View File

@@ -144,6 +144,16 @@ def log_python_warnings():
category=DeprecationWarning,
module="sass",
)
warnings.filterwarnings(
'ignore',
'Deprecated call to `pkg_resources.declare_namespace.*',
category=DeprecationWarning,
)
warnings.filterwarnings(
'ignore',
'.*pkg_resources is deprecated as an API.*',
category=DeprecationWarning,
)
# try:
# # There are far too many of these deprecation warnings in startup to output for every management command;
# # suppress them until we've fixed at least the most common ones as reported by the test suite