From 2f19e6a5da1792196fd5f3932a15392146985afb Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 19 Nov 2019 14:01:20 +0100 Subject: [PATCH 8/8] tox: hide currently unfixable warnings (#37760) --- tox.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tox.ini b/tox.ini index a5455400..4779c8bb 100644 --- a/tox.ini +++ b/tox.ini @@ -40,3 +40,14 @@ commands = ./get_wcs.sh django111: py.test {posargs: {env:FAST:} --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc tests/} django111: ./pylint.sh passerelle/ + +[pytest] +filterwarnings = default + error:.* +# to delete when using python3, it's a warning inside ElementTree + ignore:.*tree.iter().*:PendingDeprecationWarning +# pyproj warning about deprecation of '+init=authority:code which comes from using Proj(init='EPSG:4326') instead of Proj('EPSG:4326') +# I tried the new syntax but it broke some opengis tests + module:.*init.*authority.*code.*syntax is deprecated:DeprecationWarning:pyproj +# wcs root directory must be renamed to fix this one + ignore:Not importing directory.*/wcs':ImportWarning -- 2.23.0