Add warnings filter for disutils deprecation

Deprecated in 3.10, scheduled for removal in 3.12
This commit is contained in:
Bruno Oliveira 2021-03-27 10:37:34 -03:00
parent b2954e85d6
commit 913cffa45f
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ filterwarnings = [
# produced by older pyparsing<=2.2.0.
"default:Using or importing the ABCs:DeprecationWarning:pyparsing.*",
"default:the imp module is deprecated in favour of importlib:DeprecationWarning:nose.*",
# distutils is deprecated in 3.10, scheduled for removal in 3.12
"ignore:The distutils package is deprecated:DeprecationWarning",
# produced by python3.6/site.py itself (3.6.7 on Travis, could not trigger it with 3.6.8)."
"ignore:.*U.*mode is deprecated:DeprecationWarning:(?!(pytest|_pytest))",
# produced by pytest-xdist