Skip to content

Commit 25a93c8

Browse files
committed
Update test_lttb
- Update comment when skipped - Skip failing test on macOS
1 parent 85dd70c commit 25a93c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chaco/downsample/tests/test_lttb.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import unittest
1212
import timeit
13+
import platform
1314

1415
import numpy as np
1516
from numpy.testing import assert_array_equal, assert_almost_equal
@@ -28,7 +29,7 @@
2829
"""
2930

3031

31-
@unittest.skipIf(_lttb is None, "operation is not available")
32+
@unittest.skipIf(_lttb is None, "extension is not compiled")
3233
class TestLargestTriangleThreeBuckets(unittest.TestCase):
3334
def test_timing(self):
3435
statement = "largest_triangle_three_buckets(a, n_buckets)"
@@ -45,6 +46,9 @@ def test_timing(self):
4546
# 0.0112847280502 2016/10/18, 2.8 GHz 16 GB mid-2014 MacBook Pro
4647
self.assertLess(t, 0.1)
4748

49+
@unittest.skipIf(
50+
platform.system() == 'Darwin',
51+
'Test fails on macOS; https://github.com/enthought/chaco/issues/918')
4852
def test_linear(self):
4953
a = np.empty(shape=(101, 2))
5054
a[:, 0] = np.linspace(0.0, 10.0, 101)

0 commit comments

Comments
 (0)