Skip to content

Commit c0057dc

Browse files
committed
Testing: Flaky decorator for test_watchers
1 parent c819d3a commit c0057dc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
codecov
2+
flaky
23
isort==4.3.15
34
pycodestyle==2.5.0
45
pydocstyle==3.0.0

tests/test_watchers.py

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

2020
# Third party imports
21+
from flaky import flaky
2122
import pytest
2223

2324
# Local imports
@@ -42,6 +43,7 @@ def __call__(self, *args, **kwargs):
4243
@pytest.mark.parametrize(
4344
'Watcher', (PollingWatcher, QtWatcher),
4445
)
46+
@flaky(max_runs=3)
4547
def test_watchers(Watcher, tmpdir):
4648
"""Stress test Watcher implementations"""
4749

0 commit comments

Comments
 (0)