From 470f4ee53cc64e0d5e2f849ac47565d06cac51f5 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 5 Sep 2023 07:18:11 -0300 Subject: [PATCH] Fix warn_on_impl parameter on newhooks.py --- src/xdist/newhooks.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/xdist/newhooks.py b/src/xdist/newhooks.py index 384cde7..44ea5d8 100644 --- a/src/xdist/newhooks.py +++ b/src/xdist/newhooks.py @@ -25,14 +25,18 @@ def pytest_xdist_newgateway(gateway): @pytest.hookspec( - warn_on_impl="rsync feature is deprecated and will be removed in pytest-xdist 4.0" + warn_on_impl=DeprecationWarning( + "rsync feature is deprecated and will be removed in pytest-xdist 4.0" + ) ) def pytest_xdist_rsyncstart(source, gateways): """called before rsyncing a directory to remote gateways takes place.""" @pytest.hookspec( - warn_on_impl="rsync feature is deprecated and will be removed in pytest-xdist 4.0" + warn_on_impl=DeprecationWarning( + "rsync feature is deprecated and will be removed in pytest-xdist 4.0" + ) ) def pytest_xdist_rsyncfinish(source, gateways): """called after rsyncing a directory to remote gateways takes place."""