From 088e1247e79a7f07b965f32ccb1bb33a7695b366 Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Wed, 28 Dec 2022 15:51:18 +0000 Subject: [PATCH] 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 (cherry picked from commit eaeebfcb38599c94e89bbba3e9c7aeb821c84d71) --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 65c8bf5f0d0..b5ce5ae2286 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