8000 TST: unit test fix related to #8009 · ivannz/scikit-learn@c59418b · GitHub
[go: up one dir, main page]

Skip to content

Commit c59418b

Browse files
committed
TST: unit test fix related to scikit-learn#8009
1 parent b9073c5 commit c59418b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/svm/tests/test_svm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def test_svdd():
290290
assert_array_almost_equal(clf.dual_coef_,
291291
[[0.632, 0.233, 0.633, 0.234, 0.632, 0.633]],
292292
decimal=3)
293-
assert_raises(ValueError, lambda: clf.coef_)
293+
assert_false(hasattr(clf, "coef_"))
294294

295295

296296
def test_svdd_decision_function():

0 commit comments

Comments
 (0)
0