Skip to content

Commit 73f609e

Browse files
committed
bug fixing
1 parent f11ca75 commit 73f609e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_tasks/test_task_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ def test_delete_task_with_run(mock_request, test_files_directory, test_server_v1
233233
)
234234

235235
with pytest.raises(
236-
OpenMLServerException,
237-
match="Task does not exist",
236+
OpenMLNotAuthorizedError,
237+
match="The task can not be deleted because it still has associated entities:",
238238
):
239239
openml.tasks.delete_task(3496)
240240

tests/test_utils/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_list_all_with_multiple_batches(min_number_tasks_on_test_server):
6565
# batches and at the same time do as few batches (roundtrips) as possible.
6666
batch_size = min_number_tasks_on_test_server - 1
6767
batches = openml.utils._list_all(
68-
listing_call=openml.tasks.functions.list_tasks,
68+
listing_call=openml._backend.task.list,
6969
batch_size=batch_size,
7070
)
7171
assert len(batches) >= 2

0 commit comments

Comments
 (0)