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.
This commit is contained in:
parent
f5380ea681
commit
185904070a
@ -1,6 +1,6 @@
|
|||||||
[pytest]
|
[pytest]
|
||||||
log_level = NOTSET
|
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
|
testpaths = tests
|
||||||
markers =
|
markers =
|
||||||
gui: Tests using the GUI (e.g. spawning widgets)
|
gui: Tests using the GUI (e.g. spawning widgets)
|
||||||
@ -66,5 +66,6 @@ qt_log_ignore =
|
|||||||
^Error receiving trust for a CA certificate
|
^Error receiving trust for a CA certificate
|
||||||
xfail_strict = true
|
xfail_strict = true
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
|
error
|
||||||
# This happens in many qutebrowser dependencies...
|
# 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
|
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working:DeprecationWarning
|
||||||
|
Loading…
Reference in New Issue
Block a user