Skip to content

Commit

Permalink
Use pytest.hookimpl to configure hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler authored and jpvanhal committed Nov 11, 2022
1 parent 99c7aeb commit 7d997d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Changelog

Here you can see the full list of changes between each pytest-instafail release.

0.4.3 (not yet released)
^^^^^^^^^^^^^^^^^^^^^^^^

- Use ``pytest.hookimpl`` to configure hooks, avoiding a deprecation warning in
the upcoming pytest 7.2.0.

0.4.2 (June 14, 2020)
^^^^^^^^^^^^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion pytest_instafail.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def pytest_addoption(parser):
)


@pytest.mark.trylast
@pytest.hookimpl(trylast=True)
def pytest_configure(config):
if hasattr(config, 'workerinput'):
return # xdist worker, we are already active on the master
Expand Down

0 comments on commit 7d997d6

Please sign in to comment.