diff --git a/pyproject.toml b/pyproject.toml index 5d4377b..b066adc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,7 @@ test-no-images = [ # Dependencies to run tests excluding image-generating tests. "pytest", "pytest-cov", + "pytest-rerunfailures", "pytest-xdist", "wurlitzer", ] diff --git a/tests/test_config.py b/tests/test_config.py index 116f1bc..bcb15e8 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -35,6 +35,7 @@ def test_config_filled(show_text: bool, name: str) -> None: @pytest.mark.image @pytest.mark.text +@pytest.mark.flaky(reruns=1, condition=platform.python_implementation().startswith("PyPy")) @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_config_filled_quad_as_tri(show_text: bool, name: str) -> None: