From 46a99893c16c0da3a954f58260bbb0927ada6ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 24 Jul 2025 13:21:28 +0200 Subject: [PATCH] Replace `@flaky.flaky` decorate with pytest marker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the `@pytest.mark.flaky` marker in place of the `@flaky.flaky` decorator, to modernize the code and improve compatibility with other plugins providing the feature such as `pytest-rerunfailures`. Signed-off-by: Michał Górny --- tests/test_watchers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_watchers.py b/tests/test_watchers.py index 8485ad2..f500960 100644 --- a/tests/test_watchers.py +++ b/tests/test_watchers.py @@ -18,7 +18,6 @@ import time # Third party imports -from flaky import flaky import pytest # Local imports @@ -43,7 +42,7 @@ def __call__(self, *args, **kwargs): @pytest.mark.parametrize( 'Watcher', (PollingWatcher, QtWatcher), ) -@flaky(max_runs=3) +@pytest.mark.flaky(max_runs=3) def test_watchers(Watcher, tmpdir): """Stress test Watcher implementations"""