diff --git a/CHANGES.rst b/CHANGES.rst index 90fdd39..aebc5d3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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) ^^^^^^^^^^^^^^^^^^^^^ diff --git a/pytest_instafail.py b/pytest_instafail.py index 9cd5487..c552774 100644 --- a/pytest_instafail.py +++ b/pytest_instafail.py @@ -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