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

Skip to content

Commit afe9384

Browse files
authored
Merge pull request #9423 from anntzer/interactive-test-timeout
Mark the interactive backend test as flaky.
2 parents 2f9ee04 + fc5f4e6 commit afe9384

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)