TST: fix test on scipy dev version
authorGael Varoquaux <gael.varoquaux@inria.fr>
Tue, 13 May 2014 14:07:58 +0000 (14:07 +0000)
committerYaroslav Halchenko <debian@onerussian.com>
Tue, 13 May 2014 14:07:58 +0000 (14:07 +0000)
Gbp-Pq: Name changeset_36ba287b29f3d039b8ecb5194dae1c47cf24641a.diff

sklearn/cluster/bicluster/tests/test_utils.py

index afe3be4aa40c5dfeda124c59d8b379e917036f2e..653292259d71b5599b16188f357ecf8b2eaccd8f 100644 (file)
@@ -40,4 +40,6 @@ def test_get_submatrix():
                                        [6, 7],
                                        [18, 19]])
         submatrix[:] = -1
+        if issparse(X):
+            X = X.todense()
         assert_true(np.all(X != -1))