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, Feb 1, 9:44 AM
Unknown Object (File)
Jan 20 2025, 5:34 AM
Unknown Object (File)
Jan 20 2025, 5:22 AM
Unknown Object (File)
Jan 19 2025, 11:24 PM
Unknown Object (File)
Jan 17 2025, 1:27 PM
Unknown Object (File)
Jan 12 2025, 6:15 PM
Unknown Object (File)
Oct 29 2024, 4:55 PM
Unknown Object (File)
Sep 27 2024, 4:48 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