From 1748d0e1f69451db579274307a2086985adf7d88 Mon Sep 17 00:00:00 2001 From: Gael Varoquaux <gael.varoquaux@normalesup.org> Date: Wed, 7 Aug 2013 19:46:50 +0200 Subject: [PATCH] TST: avoid a crash in Windows + Anaconda Py3.3 The crash is due to a numpy bug in np.load, that is called by joblib caching. We work around it by avoiding the call to np.load --- sklearn/cluster/tests/test_hierarchical.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sklearn/cluster/tests/test_hierarchical.py b/sklearn/cluster/tests/test_hierarchical.py index 2121eef7d4..8c4f06598b 100644 --- a/sklearn/cluster/tests/test_hierarchical.py +++ b/sklearn/cluster/tests/test_hierarchical.py @@ -87,6 +87,8 @@ def test_ward_clustering(): clustering.fit(X) labels = clustering.labels_ assert_true(np.size(np.unique(labels)) == 10) + # Turn caching off now + clustering = Ward(n_clusters=10, connectivity=connectivity) # Check that we obtain the same solution with early-stopping of the # tree building clustering.compute_full_tree = False -- GitLab