Skip to content

Commit

Permalink
scikit-learn#5322: Fixing test in test_estimator_checks.test_check_es…
Browse files Browse the repository at this point in the history
…timator
  • Loading branch information
hlin117 committed Oct 20, 2015
1 parent 34c8399 commit 7f82026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sklearn/utils/tests/test_estimator_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def test_check_estimator():
msg = "Estimator doesn't check for NaN and inf in predict"
assert_raises_regex(AssertionError, msg, check_estimator, NoCheckinPredict)
# check for sparse matrix input handling
msg = "Estimator type doesn't seem to fail gracefully on sparse data"
name = NoSparseClassifier.__name__
msg = "Estimator " + name + " doesn't seem to fail gracefully on sparse data"
# the check for sparse input handling prints to the stdout,
# instead of raising an error, so as not to remove the original traceback.
# that means we need to jump through some hoops to catch it.
Expand Down

0 comments on commit 7f82026

Please sign in to comment.