Skip to content

Commit

Permalink
TST: mark test_constrainedlayout.py::test_colorbar_location as flaky (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
jklymak authored and timhoffm committed Oct 31, 2018
1 parent 8a7666d commit d0deb47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/matplotlib/tests/test_constrainedlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ def test_constrained_layout23():
fig.suptitle("Suptitle{}".format(i))


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

0 comments on commit d0deb47

Please sign in to comment.