From b9b4307e4da12278ef202ddccc39344f3eb61735 Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Fri, 7 Apr 2023 15:34:43 +0800 Subject: 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 ``` --- test/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1