Page MenuHomeFreeBSD

pytest: Silence deprecation warning
ClosedPublic

Authored by jlduran on Dec 27 2022, 9:35 PM.
Tags
None
Referenced Files
F144312008: D37884.id114607.diff
Sat, Feb 7, 7:14 PM
F144311303: D37884.id114581.diff
Sat, Feb 7, 7:09 PM
Unknown Object (File)
Sat, Jan 31, 1:01 PM
Unknown Object (File)
Dec 1 2025, 1:58 PM
Unknown Object (File)
Nov 26 2025, 3:44 PM
Unknown Object (File)
Nov 25 2025, 3:57 PM
Unknown Object (File)
Nov 22 2025, 3:43 AM
Unknown Object (File)
Nov 13 2025, 9:10 AM

Details

Summary

Before pluggy, pytest’s plugin library, was its own package and had a clear API, pytest just used pytest.mark to configure hooks.

The pytest.hookimpl() and pytest.hookspec() decorators have been available since years and should be used instead.

Reference: https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable