Page MenuHomeFreeBSD

pytest: Silence deprecation warning
ClosedPublic

Authored by jlduran on Dec 27 2022, 9:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 17, 9:12 PM
Unknown Object (File)
Mon, Oct 13, 1:41 AM
Unknown Object (File)
Mon, Oct 13, 1:41 AM
Unknown Object (File)
Mon, Oct 13, 1:41 AM
Unknown Object (File)
Sun, Oct 12, 1:58 PM
Unknown Object (File)
Sun, Oct 5, 2:56 PM
Unknown Object (File)
Fri, Sep 26, 9:47 AM
Unknown Object (File)
Sep 16 2025, 10:48 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