Handle flaky windows test by rerunning (#414)
This commit is contained in:
parent
bbcc0f214f
commit
a0a5916bd7
1
Pipfile
1
Pipfile
|
@ -9,6 +9,7 @@ tox = "*"
|
||||||
flake8 = "==3.8.4" # also bump this in .pre-commit-config.yaml
|
flake8 = "==3.8.4" # also bump this in .pre-commit-config.yaml
|
||||||
black = "==20.8b1" # also bump this in .pre-commit-config.yaml
|
black = "==20.8b1" # also bump this in .pre-commit-config.yaml
|
||||||
pre-commit = "*"
|
pre-commit = "*"
|
||||||
|
pytest-rerunfailures = "*"
|
||||||
|
|
||||||
[packages]
|
[packages]
|
||||||
pytest-html = {editable = true,path = "."}
|
pytest-html = {editable = true,path = "."}
|
||||||
|
|
|
@ -186,6 +186,7 @@ class TestHTML:
|
||||||
assert_results(html, passed=0, failed=1)
|
assert_results(html, passed=0, failed=1)
|
||||||
assert "AssertionError" in html
|
assert "AssertionError" in html
|
||||||
|
|
||||||
|
@pytest.mark.flaky(reruns=2) # test is flaky on windows
|
||||||
def test_rerun(self, testdir):
|
def test_rerun(self, testdir):
|
||||||
testdir.makeconftest(
|
testdir.makeconftest(
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue