diff --git a/cms/pytest.ini b/cms/pytest.ini index 65e350958909..c18bf1d66f31 100644 --- a/cms/pytest.ini +++ b/cms/pytest.ini @@ -20,6 +20,7 @@ filterwarnings = # and also due to dependency: https://github.com/PyFilesystem/pyfilesystem2 ignore:Deprecated call to `pkg_resources.declare_namespace.*:DeprecationWarning ignore:.*pkg_resources is deprecated as an API.*:DeprecationWarning + ignore:'etree' is deprecated. Use 'xml.etree.ElementTree' instead.:DeprecationWarning:wiki norecursedirs = envs python_classes = diff --git a/common/test/pytest.ini b/common/test/pytest.ini index 05d334a6e1b1..5df48c9325ee 100644 --- a/common/test/pytest.ini +++ b/common/test/pytest.ini @@ -19,5 +19,6 @@ filterwarnings = # and also due to dependency: https://github.com/PyFilesystem/pyfilesystem2 ignore:Deprecated call to `pkg_resources.declare_namespace.*:DeprecationWarning ignore:.*pkg_resources is deprecated as an API.*:DeprecationWarning + ignore:'etree' is deprecated. Use 'xml.etree.ElementTree' instead.:DeprecationWarning:wiki norecursedirs = .cache diff --git a/openedx/core/lib/logsettings.py b/openedx/core/lib/logsettings.py index eea23df14ef9..f813be5c8fb7 100644 --- a/openedx/core/lib/logsettings.py +++ b/openedx/core/lib/logsettings.py @@ -154,6 +154,10 @@ def log_python_warnings(): '.*pkg_resources is deprecated as an API.*', category=DeprecationWarning, ) + warnings.filterwarnings( + 'ignore', "'etree' is deprecated. Use 'xml.etree.ElementTree' instead.", + category=DeprecationWarning, module='wiki' + ) # 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 diff --git a/setup.cfg b/setup.cfg index 27ecdc7cea7a..8e643ab668da 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,6 +21,7 @@ filterwarnings = # and also due to dependency: https://github.com/PyFilesystem/pyfilesystem2 ignore:Deprecated call to `pkg_resources.declare_namespace.*:DeprecationWarning ignore:.*pkg_resources is deprecated as an API.*:DeprecationWarning + ignore:'etree' is deprecated. Use 'xml.etree.ElementTree' instead.:DeprecationWarning:wiki junit_family = xunit2 norecursedirs = .* *.egg build conf dist node_modules test_root cms/envs lms/envs