Page MenuHomeFreeBSD

pytest: Silence deprecation warning
ClosedPublic

Authored by jlduran on Dec 27 2022, 9:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 22, 2:21 AM
Unknown Object (File)
Mon, Apr 20, 12:32 PM
Unknown Object (File)
Sat, Apr 18, 6:44 AM
Unknown Object (File)
Sat, Apr 11, 11:41 PM
Unknown Object (File)
Mon, Mar 30, 1:20 AM
Unknown Object (File)
Mon, Mar 30, 1:20 AM
Unknown Object (File)
Sat, Mar 28, 1:42 AM
Unknown Object (File)
Fri, Mar 27, 9:25 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