Florian Bruhin 2018-10-24 09:47:53 +02:00
parent 1c7667014a
commit d299e48960
2 changed files with 6 additions and 2 deletions

View File

@ -69,3 +69,5 @@ 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
# WORKAROUND for https://github.com/ionelmc/pytest-benchmark/issues/124
ignore:Node\.warn\(code, message\) form has been deprecated, use Node\.warn\(warning_instance\) instead:pytest.PytestDeprecationWarning

View File

@ -30,8 +30,10 @@ import qutebrowser.browser.hints
@pytest.fixture(autouse=True)
def setup(win_registry, mode_manager):
pass
def setup(benchmark, win_registry, mode_manager):
yield
# WORKAROUND for https://github.com/ionelmc/pytest-benchmark/issues/125
benchmark._mode = 'WORKAROUND' # pylint: disable=protected-access
@pytest.fixture