chore: ignore warning from pkg_resources.declare_namespace
Related issue: https://github.com/openedx/edx-platform/issues/33592
This commit is contained in:
@@ -16,6 +16,10 @@ filterwarnings =
|
||||
ignore:.*You can remove default_app_config.*:PendingDeprecationWarning
|
||||
# ABC deprecation Warning comes from libsass
|
||||
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated.*:DeprecationWarning:sass
|
||||
# declare_namespace Warning comes from XBlock https://github.com/openedx/XBlock/issues/641
|
||||
# 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
|
||||
|
||||
norecursedirs = envs
|
||||
python_classes =
|
||||
|
||||
@@ -15,4 +15,9 @@ filterwarnings =
|
||||
ignore:.*You can remove default_app_config.*:PendingDeprecationWarning
|
||||
# ABC deprecation Warning comes from libsass
|
||||
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated.*:DeprecationWarning:sass
|
||||
# declare_namespace Warning comes from XBlock https://github.com/openedx/XBlock/issues/641
|
||||
# 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
|
||||
|
||||
norecursedirs = .cache
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -17,6 +17,10 @@ filterwarnings =
|
||||
ignore:Instead access HTTPResponse.headers directly.*:DeprecationWarning:elasticsearch
|
||||
# ABC deprecation Warning comes from libsass
|
||||
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated.*:DeprecationWarning:sass
|
||||
# declare_namespace Warning comes from XBlock https://github.com/openedx/XBlock/issues/641
|
||||
# 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
|
||||
|
||||
junit_family = xunit2
|
||||
norecursedirs = .* *.egg build conf dist node_modules test_root cms/envs lms/envs
|
||||
|
||||
Reference in New Issue
Block a user