Skip to content

Commit 0ff54bb

Browse files
authored
Use pytest-rerunfailures for flaky tests (#2279)
1 parent 4597bad commit 0ff54bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ docker
22
plumbum
33
pre-commit
44
pytest
5-
pytest-retry
5+
pytest-rerunfailures
66
# `pytest-xdist` is a plugin that provides the `--numprocesses` flag,
77
# allowing us to run `pytest` tests in parallel
88
pytest-xdist

tests/by_image/all-spark-notebook/test_spark_r_nbconvert.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
THIS_DIR = Path(__file__).parent.resolve()
1313

1414

15-
@pytest.mark.flaky(retries=3, delay=1)
15+
@pytest.mark.flaky(reruns=3, reruns_delay=1)
1616
@pytest.mark.parametrize(
1717
"test_file,expected_warnings",
1818
[

0 commit comments

Comments
 (0)