Page MenuHomeFreeBSD

pytest: Silence deprecation warning
ClosedPublic

Authored by jlduran on Dec 27 2022, 9:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 16, 7:36 PM
Unknown Object (File)
Sat, May 16, 7:36 PM
Unknown Object (File)
Sat, May 16, 7:34 PM
Unknown Object (File)
Tue, Apr 28, 10:31 AM
Unknown Object (File)
Apr 22 2026, 2:21 AM
Unknown Object (File)
Apr 20 2026, 12:32 PM
Unknown Object (File)
Apr 18 2026, 6:44 AM
Unknown Object (File)
Apr 11 2026, 11:41 PM

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