Skip to content

Commit 08a39e0

Browse files
committed
fix 2.7 bug
1 parent aa51d3d commit 08a39e0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_runs/test_run_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,8 @@ def test__run_model_on_fold(self):
755755
num_repeats = 1
756756

757757
clf = SGDClassifier(loss='log', random_state=1)
758-
res = openml.runs.functions._run_model_on_fold(clf, task, 0, 0, 0, True)
758+
can_measure_runtime = sys.version_info[:2] >= (3, 3)
759+
res = openml.runs.functions._run_model_on_fold(clf, task, 0, 0, 0, can_measure_runtime)
759760

760761
arff_datacontent, arff_tracecontent, user_defined_measures, model = res
761762
# predictions

0 commit comments

Comments
 (0)