From a6a2533cc8bf4953a6ca3bfe539761123557db2d Mon Sep 17 00:00:00 2001 From: danigm Date: Wed, 30 Nov 2022 11:44:12 +0100 Subject: [PATCH] Use `pytest.hookimpl` in `pytest_configure` (#49) This patch moves away from using the deprecated mechanism in order to clear out the warning in pytest 7. Resolves https://github.com/aio-libs/pytest-aiohttp/issues/47. --- pytest_aiohttp/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_aiohttp/plugin.py b/pytest_aiohttp/plugin.py index d4854d8..68c8ad8 100644 --- a/pytest_aiohttp/plugin.py +++ b/pytest_aiohttp/plugin.py @@ -18,7 +18,7 @@ ) -@pytest.mark.tryfirst +@pytest.hookimpl(tryfirst=True) def pytest_configure(config) -> None: val = config.getoption("asyncio_mode") if val is None: