Skip to content

Commit dcec19e

Browse files
committed
Try delaying re-run [skip doc] [skip appveyor]
1 parent 59dc179 commit dcec19e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/matplotlib/tests/test_backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
# This tests tends to hit a TeX cache lock on AppVeyor.
22-
@pytest.mark.flaky(reruns=3)
22+
@pytest.mark.flaky(reruns=3, reruns_delay=10)
2323
@pytest.mark.parametrize('papersize', ['letter', 'figure'])
2424
@pytest.mark.parametrize('orientation', ['portrait', 'landscape'])
2525
@pytest.mark.parametrize('format, use_log, rcParams', [

lib/matplotlib/tests/test_backend_tk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def legitimate_quit():
129129
@pytest.mark.skipif(platform.python_implementation() != 'CPython',
130130
reason='PyPy does not support Tkinter threading: '
131131
'https://foss.heptapod.net/pypy/pypy/-/issues/1929')
132-
@pytest.mark.flaky(reruns=3)
132+
@pytest.mark.flaky(reruns=3, reruns_delay=10)
133133
@_isolated_tk_test(success_count=1)
134134
def test_figuremanager_cleans_own_mainloop():
135135
import tkinter
@@ -156,7 +156,7 @@ def target():
156156
thread.join()
157157

158158

159-
@pytest.mark.flaky(reruns=3)
159+
@pytest.mark.flaky(reruns=3, reruns_delay=10)
160160
@_isolated_tk_test(success_count=0)
161161
def test_never_update():
162162
import tkinter

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def check_alt_backend(alt_backend):
240240

241241
@pytest.mark.parametrize("env", _get_testable_interactive_backends())
242242
@pytest.mark.parametrize("toolbar", ["toolbar2", "toolmanager"])
243-
@pytest.mark.flaky(reruns=_retry_count)
243+
@pytest.mark.flaky(reruns=_retry_count, reruns_delay=10)
244244
def test_interactive_backend(env, toolbar):
245245
if env["MPLBACKEND"] == "macosx":
246246
if toolbar == "toolmanager":
@@ -335,7 +335,7 @@ def _test_thread_impl():
335335

336336

337337
@pytest.mark.parametrize("env", _thread_safe_backends)
338-
@pytest.mark.flaky(reruns=_retry_count)
338+
@pytest.mark.flaky(reruns=_retry_count, reruns_delay=10)
339339
def test_interactive_thread_safety(env):
340340
proc = _run_helper(_test_thread_impl, timeout=_test_timeout, extra_env=env)
341341
assert proc.stdout.count("CloseEvent") == 1
@@ -623,7 +623,7 @@ def _test_number_of_draws_script():
623623

624624
@pytest.mark.parametrize("env", _blit_backends)
625625
# subprocesses can struggle to get the display, so rerun a few times
626-
@pytest.mark.flaky(reruns=_retry_count)
626+
@pytest.mark.flaky(reruns=_retry_count, reruns_delay=10)
627627
def test_blitting_events(env):
628628
proc = _run_helper(
629629
_test_number_of_draws_script, timeout=_test_timeout, extra_env=env)

0 commit comments

Comments
 (0)