Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <[email protected]>
  • Loading branch information
adam2392 committed Aug 16, 2023
1 parent 4a8f7d5 commit 1bfffb7
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions sktree/tree/tests/test_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,6 @@
digits.target = digits.target[perm]


ALL_TREES = [
ObliqueDecisionTreeClassifier,
PatchObliqueDecisionTreeClassifier,
UnsupervisedDecisionTree,
UnsupervisedObliqueDecisionTree,
]


def assert_tree_equal(d, s, message):
assert s.node_count == d.node_count, "{0}: inequal number of node ({1} != {2})".format(
message, s.node_count, d.node_count
Expand Down Expand Up @@ -232,9 +224,9 @@ def test_pickle_splitters():
)
def test_sklearn_compatible_estimator(estimator, check):
# TODO: remove when we can replicate the CI error...
if isinstance(estimator, PatchObliqueDecisionTreeClassifier) and check.func.__name__ in [
"check_fit_score_takes_y"
]:
if isinstance(
estimator, [PatchObliqueDecisionTreeClassifier, ExtraObliqueDecisionTreeClassifier]
) and check.func.__name__ in ["check_fit_score_takes_y"]:
pytest.skip()
check(estimator)

Expand Down

0 comments on commit 1bfffb7

Please sign in to comment.