Skip to content

Commit a6a2533

Browse files
authored
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 #47.
1 parent 9aea81e commit a6a2533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_aiohttp/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919

2020

21-
@pytest.mark.tryfirst
21+
@pytest.hookimpl(tryfirst=True)
2222
def pytest_configure(config) -> None:
2323
val = config.getoption("asyncio_mode")
2424
if val is None:

0 commit comments

Comments
 (0)