summaryrefslogtreecommitdiff
path: root/pytest.ini
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-10-24 09:06:07 +0200
committerFlorian Bruhin <me@the-compiler.org>2018-10-24 10:57:17 +0200
commit185904070a6d8e044fce3f3521d9263f1e712deb (patch)
treea21131835a4a1464d42060cf6df12ab136d306e6 /pytest.ini
parentf5380ea6817ed2a61a325edd44004ded616a7478 (diff)
downloadqutebrowser-185904070a6d8e044fce3f3521d9263f1e712deb.tar.gz
qutebrowser-185904070a6d8e044fce3f3521d9263f1e712deb.zip
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.
Diffstat (limited to 'pytest.ini')
-rw-r--r--pytest.ini3
1 files changed, 2 insertions, 1 deletions
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