File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1010
1111import unittest
1212import timeit
13+ import platform
1314
1415import numpy as np
1516from numpy .testing import assert_array_equal , assert_almost_equal
2829"""
2930
3031
31- @unittest .skipIf (_lttb is None , "operation is not available " )
32+ @unittest .skipIf (_lttb is None , "extension is not compiled " )
3233class 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 )
You can’t perform that action at this time.
0 commit comments