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

Skip to content

Commit 504b29a

Browse files
committed
TST: mark test_constrainedlayout.py::test_colorbar_location as flaky
1 parent 9e8be5b commit 504b29a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_constrainedlayout.py

Lines changed: 5 additions & 0 deletions
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)