Skip to content

Commit 64d11ee

Browse files
committed
Skip tests if the lttb modules is not available
1 parent 229f028 commit 64d11ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chaco/downsample/tests/test_lttb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import numpy as np
1515
from numpy.testing import assert_array_equal, assert_almost_equal
1616

17-
from ..lttb import largest_triangle_three_buckets
17+
from ..lttb import largest_triangle_three_buckets, _lttb
1818

1919

2020
TIMING_SETUP = """
@@ -28,6 +28,7 @@
2828
"""
2929

3030

31+
@unttitest.skipIf(_lttb is None, "operation is not available")
3132
class TestLargestTriangleThreeBuckets(unittest.TestCase):
3233
def test_timing(self):
3334
statement = "largest_triangle_three_buckets(a, n_buckets)"

0 commit comments

Comments
 (0)