Skip to content

Commit 505c809

Browse files
committed
Skip test_sparse_categorical_model() test on Windows, see #100
1 parent fe28d81 commit 505c809

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/python/test_lightgbm_integration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def test_categorical_data(self):
121121
use_quantize=use_quantize,
122122
use_parallel_comp=use_parallel_comp)
123123

124+
@pytest.mark.skipif(os_platform() == 'windows', reason='MSVC cannot handle long if conditional')
124125
def test_sparse_categorical_model(self):
125126
"""
126127
LightGBM is able to produce categorical splits directly, so that
@@ -148,4 +149,4 @@ def test_sparse_categorical_model(self):
148149
multiclass=multiclass, use_annotation=None,
149150
use_quantize=use_quantize,
150151
use_parallel_comp=use_parallel_comp,
151-
use_toolchains=['msvc' if os_platform() == 'windows' else 'gcc'])
152+
use_toolchains=['gcc'])

0 commit comments

Comments
 (0)