TST Ignore Kmeans test failures on MacOS (0.20.X)
diff --git a/sklearn/cluster/tests/test_k_means.py b/sklearn/cluster/tests/test_k_means.py
index cec0fa2897546..a467b80538447 100644
--- a/sklearn/cluster/tests/test_k_means.py
+++ b/sklearn/cluster/tests/test_k_means.py
@@ -336,6 +336,10 @@ def test_k_means_fit_predict(algo, dtype, constructor, seed, max_iter, tol):
     # There's a very small chance of failure with elkan on unstructured dataset
     # because predict method uses fast euclidean distances computation which
     # may cause small numerical instabilities.
+    if sys.platform == "darwin":
+        pytest.xfail(
+            "Known failures on MacOS, See "
+            "https://github.com/scikit-learn/scikit-learn/issues/12644")
     if not (algo == 'elkan' and constructor is sp.csr_matrix):
         rng = np.random.RandomState(seed)
 

See https://github.com/scikit-learn/scikit-learn/issues/12644#issuecomment-440949725
Tag #12644 from 0.20.1 to 0.21
For 0.20.X branch.