8000 patches/deb_disable_test_spectral_old_scipy - disable unittest on old… · seckcoder/scikit-learn@01d3486 · GitHub
[go: up one dir, main page]

Skip to content

Commit 01d3486

Browse files
committed
patches/deb_disable_test_spectral_old_scipy - disable unittest on older scipy's due to failure
1 parent c805989 commit 01d3486

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

debian/changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ scikit-learn (0.12.0-1) experimental; urgency=low
33
* Fresh upstrem release:
44
- all debian/up_ patches removed, deb_ patched updated
55
* Boosted policy to 3.9.3 (should be ok without changes)
6+
* patches/deb_disable_test_spectral_old_scipy
7+
- disable unittest on older scipy's due to failure
68

79
-- Yaroslav Halchenko <debian@onerussian.com> Wed, 05 Sep 2012 15:15:18 -0400
810

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- a/sklearn/cluster/tests/test_spectral.py
2+
+++ b/sklearn/cluster/tests/test_spectral.py
3+
@@ -118,6 +118,10 @@ def test_affinities():
4+
# nearest neighbors affinity
5+
sp = SpectralClustering(n_clusters=2, affinity='nearest_neighbors',
6+
random_state=0)
7+
+ import scipy
8+
+ from distutils.version import LooseVersion
9+
+ if LooseVersion(scipy.__version__) < '0.7.3':
10+
+ raise nose.SkipTest("Known to fail on 64bit on older scipy")
11+
labels = sp.fit(X).labels_
12+
assert_equal(adjusted_rand_score(y, labels), 1)
13+

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
deb_use_system_joblib
2+
deb_disable_test_spectral_old_scipy

0 commit comments

Comments
 (0)
0