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
This commit is contained in:
Jose Luis Duran 2022-12-28 15:51:18 +00:00 committed by Alexander V. Chernikov
parent bd5d9037c5
commit eaeebfcb38

View File

@ -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