Skip to content

Commit 8301492

Browse files
committed
Remove problematic test with deprecated edge case
1 parent d01ec19 commit 8301492

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/test_gridsearch.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,6 @@ def test_handle_empty_input(self, grid_search_mixin):
8383
classifier=DummyClassifier(), x_train=np.array([]), y_train=np.array([]), cv=3, parameters={"strategy": ["most_frequent"]}
8484
)
8585

86-
def test_grid_search_score_intercept_raises_value_error(self, grid_search_mixin):
87-
"""Should raise ValueError when scoring method raises TypeError"""
88-
89-
# noinspection PyMissingOrEmptyDocstring, PyShadowingNames
90-
def faulty_scorer(_, __):
91-
raise TypeError("Intentional TypeError for testing")
92-
93-
grid_search_mixin._scorer_method = faulty_scorer
94-
y_true = np.array([0, 1, 1, 0])
95-
y_pred = np.array([0, 0, 1, 1])
96-
97-
with pytest.raises(ValueError, match="Error during scoring with method faulty_scorer"):
98-
grid_search_mixin._grid_search_score_intercept(y_pred=y_pred, y_true=y_true)
99-
10086
def test_handle_multi_class_predictions_without_argmax(self, grid_search_mixin):
10187
"""Test handling of multi-class predictions without applying argmax"""
10288
y_true = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]])

0 commit comments

Comments
 (0)