From 2e83412c022df1f877f9ea94fb354d510c661afe Mon Sep 17 00:00:00 2001 From: Hanmin Qin Date: Tue, 14 May 2019 21:26:49 +0800 Subject: [PATCH] TST Skip test_ridge.test_dtype_match on MacOS --- sklearn/linear_model/tests/test_ridge.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sklearn/linear_model/tests/test_ridge.py b/sklearn/linear_model/tests/test_ridge.py index e795351bfa329..c590dfd98020a 100644 --- a/sklearn/linear_model/tests/test_ridge.py +++ b/sklearn/linear_model/tests/test_ridge.py @@ -1,3 +1,4 @@ +import sys import numpy as np import scipy.sparse as sp from scipy import linalg @@ -1086,6 +1087,10 @@ def test_dtype_match(solver): assert coef_64.dtype == X_64.dtype assert ridge_32.predict(X_32).dtype == X_32.dtype assert ridge_64.predict(X_64).dtype == X_64.dtype + if solver == "sparse_cg" and sys.platform == "darwin": + pytest.xfail( + "Known failures on MacOS, See " + "https://github.com/scikit-learn/scikit-learn/issues/13868") assert_allclose(ridge_32.coef_, ridge_64.coef_, rtol=1e-4)