Skip to content

Commit 21cf29c

Browse files
committed
Fixed unit test in sklearn/tree/tests/test_tree.py.
1 parent eb48371 commit 21cf29c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/tree/tests/test_tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,10 +1436,10 @@ def test_decision_path():
14361436
def check_no_sparse_y_support(name):
14371437
X, y = X_multilabel, csr_matrix(y_multilabel)
14381438
TreeEstimator = ALL_TREES[name]
1439-
assert_raises(ValueError, TreeEstimator(random_state=0).fit, X, y)
1439+
assert_raises(TypeError, TreeEstimator(random_state=0).fit, X, y)
14401440

14411441

14421442
def test_no_sparse_y_support():
14431443
# Currently we don't support sparse y
14441444
for name in ALL_TREES:
1445-
yield (check_decision_path, name)
1445+
yield (check_no_sparse_y_support, name)

0 commit comments

Comments
 (0)