diff --git a/Pipfile b/Pipfile index f532a51e..800e84c3 100644 --- a/Pipfile +++ b/Pipfile @@ -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 = "."} diff --git a/testing/test_pytest_html.py b/testing/test_pytest_html.py index 296b353e..3e0c59bf 100644 --- a/testing/test_pytest_html.py +++ b/testing/test_pytest_html.py @@ -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( """