99class CHelperFunctionTest (unittest .TestCase ):
1010 _multiprocess_can_split_ = True
1111
12+ def setUp (self ):
13+ try :
14+ travis = os .environ ['TRAVIS' ]
15+ self .travis = True
16+ except Exception :
17+ self .travis = False
18+
1219 def test_read_sparse_file (self ):
20+ if self .travis :
21+ self .skipTest ('Does not work on travis-ci and will be removed in '
22+ 'the near future.' )
1323 filename = os .path .join (os .path .dirname (__file__ ),
1424 '../.data/newsgroup/newsgroups_valid.data' )
1525 data = competition_c_functions .read_sparse_file (
@@ -20,6 +30,9 @@ def test_read_sparse_file(self):
2030 self .assertEqual (data .nnz , 246216 )
2131
2232 def test_read_sparse_binary_file (self ):
33+ if self .travis :
34+ self .skipTest ('Does not work on travis-ci and will be removed in '
35+ 'the near future.' )
2336 filename = os .path .join (os .path .dirname (__file__ ),
2437 '../.data/dorothea/dorothea_train.data' )
2538 data = competition_c_functions .read_sparse_binary_file (
@@ -30,6 +43,9 @@ def test_read_sparse_binary_file(self):
3043 self .assertEqual (data .nnz , 8192 )
3144
3245 def test_read_dense (self ):
46+ if self .travis :
47+ self .skipTest ('Does not work on travis-ci and will be removed in '
48+ 'the near future.' )
3349 filename = os .path .join (os .path .dirname (__file__ ),
3450 '../.data/31_bac/31_bac_train.data' )
3551 data = competition_c_functions .read_dense_file (
0 commit comments