From: Matthias Goergens Date: Fri, 7 Apr 2023 07:34:43 +0000 (+0800) Subject: Fix deprecated @pytest.mark.hookwrapper X-Git-Tag: fuse-3.15.0~22 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b9b4307e4da12278ef202ddccc39344f3eb61735;p=qemu-gpiodev%2Flibfuse.git Fix deprecated @pytest.mark.hookwrapper ``` PytestDeprecationWarning: The hookimpl pytest_pyfunc_call uses old-style configuration options (marks or attributes). Please use the pytest.hookimpl(hookwrapper=True) decorator instead to configure the hooks. See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers @pytest.mark.hookwrapper ``` --- diff --git a/test/conftest.py b/test/conftest.py index 6e46d5d..f528189 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -14,7 +14,7 @@ import threading # example, if a request handler raises an exception, the server first signals an # error to FUSE (causing the test to fail), and then logs the exception. Without # the extra delay, the exception will go into nowhere. -@pytest.mark.hookwrapper +@pytest.hookimpl(hookwrapper=True) def pytest_pyfunc_call(pyfuncitem): outcome = yield failed = outcome.excinfo is not None