diff options
author | Matthias Goergens <matthias.goergens@gmail.com> | 2023-04-07 15:34:43 +0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2023-04-07 15:31:58 +0100 |
commit | b9b4307e4da12278ef202ddccc39344f3eb61735 (patch) | |
tree | ea228052d30ae9ab6a109931c22d2f694f78d7cd | |
parent | 7555d032a21e5bc9accd27e93d16acf32b6c2d7d (diff) | |
download | fuse-b9b4307e4da12278ef202ddccc39344f3eb61735.tar.gz |
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
```
-rw-r--r-- | test/conftest.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |