Skip to content

Commit ab3812d

Browse files
authored
Merge pull request #12689 from meeseeksmachine/auto-backport-of-pr-12683-on-v3.0.x
Backport PR #12683 on branch v3.0.x (TST: mark test_constrainedlayout.py::test_colorbar_location as flaky)
2 parents 8eb700d + fe5130b commit ab3812d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_constrainedlayout.py

+5
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ def test_constrained_layout23():
380380
fig.suptitle("Suptitle{}".format(i))
381381

382382

383+
# This test occasionally fails the image comparison tests, so we mark as
384+
# flaky. Apparently the constraint solver occasionally doesn't fully
385+
# optimize. Would be nice if this were more deterministic...
386+
@pytest.mark.timeout(30)
387+
@pytest.mark.flaky(reruns=3)
383388
@image_comparison(baseline_images=['test_colorbar_location'],
384389
extensions=['png'], remove_text=True, style='mpl20')
385390
def test_colorbar_location():

0 commit comments

Comments
 (0)