Skip to content

Commit d45ed5b

Browse files
chore: add flaky marker to pyproject (#1179)
* add flaky marker * add pytest-rerunfailures * use rerunfailures arg
1 parent 093217d commit d45ed5b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ optional-dependencies.test = [
112112
# Just for VS Code
113113
"pytest-cov>=4",
114114
"pytest-mock>=3.5",
115+
"pytest-rerunfailures",
115116
"pytest-timeout>=2.1",
116117
"pytest-xdist>=3",
117118
"scanpy[leiden]",

tests/utils/test_parallelize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def func(request) -> Callable:
6767
# in case of failure.
6868

6969

70-
@pytest.mark.flaky(max_runs=5)
70+
@pytest.mark.flaky(reruns=4)
7171
@pytest.mark.timeout(5)
7272
@pytest.mark.parametrize(
7373
"backend",

0 commit comments

Comments
 (0)