Handle flaky windows test by rerunning (#414)

This commit is contained in:
Jim Brännlund 2020-12-14 00:02:47 +01:00 committed by GitHub
parent bbcc0f214f
commit a0a5916bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ tox = "*"
flake8 = "==3.8.4" # also bump this in .pre-commit-config.yaml
black = "==20.8b1" # also bump this in .pre-commit-config.yaml
pre-commit = "*"
pytest-rerunfailures = "*"
[packages]
pytest-html = {editable = true,path = "."}

View File

@ -186,6 +186,7 @@ class TestHTML:
assert_results(html, passed=0, failed=1)
assert "AssertionError" in html
@pytest.mark.flaky(reruns=2) # test is flaky on windows
def test_rerun(self, testdir):
testdir.makeconftest(
"""