Skip to content

Commit a0a5916

Browse files
authored
Handle flaky windows test by rerunning (#414)
1 parent bbcc0f2 commit a0a5916

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tox = "*"
99
flake8 = "==3.8.4" # also bump this in .pre-commit-config.yaml
1010
black = "==20.8b1" # also bump this in .pre-commit-config.yaml
1111
pre-commit = "*"
12+
pytest-rerunfailures = "*"
1213

1314
[packages]
1415
pytest-html = {editable = true,path = "."}

testing/test_pytest_html.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def test_fail(self, testdir):
186186
assert_results(html, passed=0, failed=1)
187187
assert "AssertionError" in html
188188

189+
@pytest.mark.flaky(reruns=2) # test is flaky on windows
189190
def test_rerun(self, testdir):
190191
testdir.makeconftest(
191192
"""

0 commit comments

Comments
 (0)