Skip to content

Commit fe6059e

Browse files
committed
Merge branch 'fix_flow_tags' of ssh://github.com/openml/openml-python into fix_flow_tags
2 parents 67f8e19 + 0d7bd21 commit fe6059e

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

tests/test_runs/test_run_functions.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,13 @@ def _check_serialized_optimized_run(self, run_id):
6363
# downloads the best model based on the optimization trace
6464
# suboptimal (slow), and not guaranteed to work if evaluation
6565
# engine is behind. TODO: mock this? We have the arff already on the server
66-
self._wait_for_processed_run(run_id, 80)
67-
model_prime = openml.runs.initialize_model_from_trace(run_id, 0, 0)
68-
66+
self._wait_for_processed_run(run_id, 200)
67+
try:
68+
model_prime = openml.runs.initialize_model_from_trace(run_id, 0, 0)
69+
except openml.exceptions.OpenMLServerException as e:
70+
e.additional += '; run_id: ' + run_id
71+
raise e
72+
6973
run_prime = openml.runs.run_model_on_task(task, model_prime,
7074
avoid_duplicate_runs=False,
7175
seed=1)
@@ -357,7 +361,7 @@ def test_get_run_trace(self):
357361
# in case the run did not exists yet
358362
run = openml.runs.run_model_on_task(task, clf, avoid_duplicate_runs=True)
359363
run = run.publish()
360-
self._wait_for_processed_run(run.run_id, 80)
364+
self._wait_for_processed_run(run.run_id, 200)
361365
run_id = run.run_id
362366
except openml.exceptions.PyOpenMLError:
363367
# run was already

0 commit comments

Comments
 (0)