Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2d7e2e

Browse files
qinhanmin2014jnothman
authored andcommitted
TST Ignore Kmeans test failures on MacOS (0.20.X) (#12651)
1 parent bb6d4e5 commit e2d7e2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sklearn/cluster/tests/test_k_means.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ def test_k_means_fit_predict(algo, dtype, constructor, seed, max_iter, tol):
332332
# There's a very small chance of failure with elkan on unstructured dataset
333333
# because predict method uses fast euclidean distances computation which
334334
# may cause small numerical instabilities.
335+
if sys.platform == "darwin":
336+
pytest.xfail(
337+
"Known failures on MacOS, See "
338+
"https://github.com/scikit-learn/scikit-learn/issues/12644")
335339
if not (algo == 'elkan' and constructor is sp.csr_matrix):
336340
rng = np.random.RandomState(seed)
337341

0 commit comments

Comments
 (0)