Work around pytest-bdd issues
See https://github.com/ionelmc/pytest-benchmark/issues/124 and https://github.com/ionelmc/pytest-benchmark/issues/125
This commit is contained in:
parent
1c7667014a
commit
d299e48960
@ -69,3 +69,5 @@ filterwarnings =
|
|||||||
error
|
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
|
||||||
|
# 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
|
||||||
|
@ -30,8 +30,10 @@ import qutebrowser.browser.hints
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def setup(win_registry, mode_manager):
|
def setup(benchmark, win_registry, mode_manager):
|
||||||
pass
|
yield
|
||||||
|
# WORKAROUND for https://github.com/ionelmc/pytest-benchmark/issues/125
|
||||||
|
benchmark._mode = 'WORKAROUND' # pylint: disable=protected-access
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
Loading…
Reference in New Issue
Block a user