From 185904070a6d8e044fce3f3521d9263f1e712deb Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 24 Oct 2018 09:06:07 +0200 Subject: [PATCH] Fix pytest warning precedence If we use filterwarnings with the commandline argument, the argument wins and all warnings are an error, even the collections DeprecationWarning. --- pytest.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 1b5016321..4d45dad5e 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,6 +1,6 @@ [pytest] log_level = NOTSET -addopts = --strict -rfEw --faulthandler-timeout=90 --instafail --pythonwarnings error --benchmark-columns=Min,Max,Median +addopts = --strict -rfEw --faulthandler-timeout=90 --instafail --benchmark-columns=Min,Max,Median testpaths = tests markers = gui: Tests using the GUI (e.g. spawning widgets) @@ -66,5 +66,6 @@ qt_log_ignore = ^Error receiving trust for a CA certificate xfail_strict = true filterwarnings = + error # This happens in many qutebrowser dependencies... ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working:DeprecationWarning