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, Jul 18, 11:10 PM
Unknown Object (File)
Sat, Jul 4, 7:46 AM
Unknown Object (File)
Fri, Jul 3, 1:13 PM
Unknown Object (File)
Fri, Jul 3, 5:47 AM
Unknown Object (File)
Wed, Jul 1, 11:22 PM
Unknown Object (File)
May 16 2026, 7:36 PM
Unknown Object (File)
May 16 2026, 7:36 PM
Unknown Object (File)
May 16 2026, 7:34 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