git: eaeebfcb3859 - main - pytest: silence deprecation warning in the pytest atf wrapper

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Wed, 28 Dec 2022 15:55:45 UTC
The branch main has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=eaeebfcb38599c94e89bbba3e9c7aeb821c84d71

commit eaeebfcb38599c94e89bbba3e9c7aeb821c84d71
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2022-12-28 15:51:18 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2022-12-28 15:53:48 +0000

    pytest: silence deprecation warning in the pytest atf wrapper
    
    Convert `pytest.mark` decorator to the `pytest.hookimpl()` one,
     as suggested by the
     https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
    
    Differential Revision: https://reviews.freebsd.org/D37884
    MFC after:      2 weeks
---
 tests/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/conftest.py b/tests/conftest.py
index 65c8bf5f0d01..b5ce5ae2286b 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -51,7 +51,7 @@ def atf_vars() -> Dict[str, str]:
     return ATFHandler.get_atf_vars()
 
 
-@pytest.mark.trylast
+@pytest.hookimpl(trylast=True)
 def pytest_configure(config):
     if config.option.help:
         return