Skip to content

Commit

Permalink
Use pytest.hookimpl in pytest_configure (#49)
Browse files Browse the repository at this point in the history
This patch moves away from using the deprecated mechanism in order to clear out the warning in pytest 7.

Resolves #47.
  • Loading branch information
danigm authored Nov 30, 2022
1 parent 9aea81e commit a6a2533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_aiohttp/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a6a2533

Please sign in to comment.