Skip to content

Commit

Permalink
Fix TravisCI Python2 test error (no $DISPLAY)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioburdisso committed May 14, 2020
1 parent 0a897dd commit 6c7d8d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def test_evaluation(mocker):

# test
# OK
assert Evaluation.test(clf_ml, x_data_ml, y_data_ml) == 1 / 3.
assert Evaluation.test(clf_ml, x_data_ml, y_data_ml, metric='exact-match') == .5
assert Evaluation.test(clf_ml, x_data_ml, y_data_ml, plot=PY3) == 1 / 3.
assert Evaluation.test(clf_ml, x_data_ml, y_data_ml, metric='exact-match', plot=PY3) == .5
assert Evaluation.test(clf, x_data, y_data, def_cat='unknown', plot=PY3) == 1
assert Evaluation.test(clf, x_data, y_data, def_cat='neg', plot=PY3) == 1
assert Evaluation.test(clf, x_data, y_data, metric="f1-score", plot=PY3) == 1
Expand Down

0 comments on commit 6c7d8d9

Please sign in to comment.