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

Skip to content

Commit ae201fc

Browse files
afvincentanntzer
authored andcommitted
slightly increase tolerance for not-really-failing tests
1 parent 594cae0 commit ae201fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,8 +1358,12 @@ def test_markevery():
13581358
ax.legend()
13591359

13601360

1361-
@image_comparison(['markevery_line'], remove_text=True)
1361+
@image_comparison(['markevery_line'], remove_text=True, tol=0.005)
13621362
def test_markevery_line():
1363+
# TODO: a slight change in rendering between Inkscape versions may explain
1364+
# why one had to introduce a small non-zero tolerance for the SVG test
1365+
# to pass. One may try to remove this hack once Travis' Inkscape version
1366+
# is modern enough. FWIW, no failure with 0.92.3 on my computer (#11358).
13631367
x = np.linspace(0, 10, 100)
13641368
y = np.sin(x) * np.sqrt(x/10 + 0.5)
13651369

0 commit comments

Comments
 (0)