mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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 eaeebfcb38)
This commit is contained in:
parent
7c8355d205
commit
088e1247e7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue