diff --git a/lib/matplotlib/tests/test_backends_interactive.py b/lib/matplotlib/tests/test_backends_interactive.py index 2db2fb5de07b..0a8b7d80276c 100644 --- a/lib/matplotlib/tests/test_backends_interactive.py +++ b/lib/matplotlib/tests/test_backends_interactive.py @@ -41,9 +41,10 @@ def _get_testable_interactive_backends(): @pytest.mark.parametrize("backend", _get_testable_interactive_backends()) +@pytest.mark.flaky(reruns=3) def test_backend(backend): environ = os.environ.copy() environ["MPLBACKEND"] = backend proc = Popen([sys.executable, "-c", _test_script], env=environ) # Empirically, 1s is not enough on Travis. - assert proc.wait(timeout=5) == 0 + assert proc.wait(timeout=10) == 0