Use modern options configurations for hooks

Noticed while reviewing https://github.com/pytest-dev/pytest/pull/9118
This commit is contained in:
Bruno Oliveira
2021-09-24 08:17:11 -03:00
parent 56275d4418
commit c7c7f9ef5b
2 changed files with 5 additions and 4 deletions

View File

@@ -0,0 +1 @@
Use ``@pytest.hookspec`` decorator to declare hook options in ``newhooks.py`` to avoid warnings in ``pytest 7.0``.