Skip to content

Commit 46a9989

Browse files
committed
Replace @flaky.flaky decorate with pytest marker
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 <[email protected]>
1 parent ba36f61 commit 46a9989

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_watchers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import time
1919

2020
# Third party imports
21-
from flaky import flaky
2221
import pytest
2322

2423
# Local imports
@@ -43,7 +42,7 @@ def __call__(self, *args, **kwargs):
4342
@pytest.mark.parametrize(
4443
'Watcher', (PollingWatcher, QtWatcher),
4544
)
46-
@flaky(max_runs=3)
45+
@pytest.mark.flaky(max_runs=3)
4746
def test_watchers(Watcher, tmpdir):
4847
"""Stress test Watcher implementations"""
4948

0 commit comments

Comments
 (0)