Skip to content

Commit b11d5a5

Browse files
committed
FIX last commit/do not push errors to server
1 parent b3063f4 commit b11d5a5

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

tests/test_runs/test_run_functions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,11 @@ def _perform_run(self, task_id, num_instances, clf):
3939
def test_run_regression_on_classif_task(self):
4040
task_id = 115
4141

42-
clf = LogisticRegression()
42+
clf = LinearRegression()
4343
task = openml.tasks.get_task(task_id)
44-
run = openml.runs.run_task(task=task, model=clf)
45-
run.publish()
46-
47-
# TODO: download and check whether it really contains the error message
48-
#downloaded_run = openml.runs.get_run(run.run_id)
44+
self.assertRaisesRegexp(AttributeError,
45+
"'LinearRegression' object has no attribute 'classes_'",
46+
openml.runs.run_task, task=task, model=clf)
4947

5048
@mock.patch('openml.flows.sklearn_to_flow')
5149
def test_check_erronous_sklearn_flow_fails(self, sklearn_to_flow_mock):

0 commit comments

Comments
 (0)