From fc5f4e61c876e17684c7472f15d5ff6dcbc3c492 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 15 Oct 2017 19:52:45 -0700 Subject: [PATCH] Mark the interactive backend test as flaky. It seems to fail quite regularly. --- lib/matplotlib/tests/test_backends_interactive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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