git: 088e1247e79a - stable/13 - pytest: silence deprecation warning in the pytest atf wrapper
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Feb 2023 16:11:21 UTC
The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=088e1247e79a7f07b965f32ccb1bb33a7695b366 commit 088e1247e79a7f07b965f32ccb1bb33a7695b366 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2022-12-28 15:51:18 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-02-09 15:45:20 +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 (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 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