From 3dc85f7a2706597326e9f8303a7336dbba3571b1 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Fri, 26 Jun 2020 17:35:55 +0200 Subject: [PATCH] pytest: do not ignore warnings but filter matrix and scipy deprecations --- .travis.yml | 2 +- setup.cfg | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 62333ead8..d0201031b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -130,7 +130,7 @@ install: # command to run tests script: - 'if [ $SLYCOT != "" ]; then python -c "import slycot"; fi' - - coverage run -m pytest --disable-warnings control/tests + - coverage run -m pytest control/tests # only run examples if Slycot is install # set PYTHONPATH for examples diff --git a/setup.cfg b/setup.cfg index 3c6e79cf3..ac4f92c75 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,8 @@ [bdist_wheel] universal=1 + +[tool:pytest] +filterwarnings = + ignore:.*matrix subclass:PendingDeprecationWarning + ignore:.*scipy:DeprecationWarning +