Skip to content

Commit

Permalink
wip4
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Jun 2, 2018
1 parent d916d39 commit 401c65f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sklearn/decomposition/tests/test_dict_learning.py
Expand Up @@ -312,9 +312,11 @@ def test_sparse_encode_positivity(positive):
else:
assert_true((code < 0).any())

assert_raises(
ValueError, sparse_encode, X, V, algorithm='omp', positive=positive
)
try:
sparse_encode(X, V, algorithm='omp', positive=positive)
except ValueError:
if not positive:
raise


def test_sparse_encode_input():
Expand Down

0 comments on commit 401c65f

Please sign in to comment.