Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc5f4e6

Browse files
committed
Mark the interactive backend test as flaky.
It seems to fail quite regularly.
1 parent 1b5223a commit fc5f4e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ def _get_testable_interactive_backends():
4141

4242

4343
@pytest.mark.parametrize("backend", _get_testable_interactive_backends())
44+
@pytest.mark.flaky(reruns=3)
4445
def test_backend(backend):
4546
environ = os.environ.copy()
4647
environ["MPLBACKEND"] = backend
4748
proc = Popen([sys.executable, "-c", _test_script], env=environ)
4849
# Empirically, 1s is not enough on Travis.
49-
assert proc.wait(timeout=5) == 0
50+
assert proc.wait(timeout=10) == 0

0 commit comments

Comments
 (0)