From a0a5916bd71b0109972155b74aa898853176d5f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Br=C3=A4nnlund?= Date: Mon, 14 Dec 2020 00:02:47 +0100 Subject: [PATCH] Handle flaky windows test by rerunning (#414) --- Pipfile | 1 + testing/test_pytest_html.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Pipfile b/Pipfile index f532a51..800e84c 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 296b353..3e0c59b 100644 --- a/testing/test_pytest_html.py +++ b/testing/test_pytest_html.py @@ -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( """