Skip to content

Commit

Permalink
Handle flaky windows test by rerunning (pytest-dev#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil authored Dec 13, 2020
1 parent bbcc0f2 commit a0a5916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "."}
1 change: 1 addition & 0 deletions testing/test_pytest_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def test_fail(self, testdir):
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(
"""
Expand Down

0 comments on commit a0a5916

Please sign in to comment.