mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -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
This commit is contained in:
parent
bd5d9037c5
commit
eaeebfcb38
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