Skip to content

Commit 0e560d9

Browse files
Add small tolerance for macos
1 parent 3e94fa2 commit 0e560d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

matplotview/tests/test_view_rendering.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
import numpy as np
24
import matplotlib.pyplot as plt
35
from matplotlib.testing.decorators import check_figures_equal
@@ -242,7 +244,7 @@ def test_stop_viewing(fig_test, fig_ref):
242244
ax1_ref.text(0.5, 0.5, "Hello")
243245

244246
# On MacOS the results are off by an extremely tiny amount, can't even see in diff. It's close enough...
245-
@check_figures_equal(tol=0.02)
247+
@check_figures_equal(tol=0.02 if sys.platform.startswith("darwin") else 0)
246248
def test_log_line(fig_test, fig_ref):
247249
data = [i for i in range(1, 10)]
248250

0 commit comments

Comments
 (0)