From 522b6ff836ba4068b545001c382ac65db291c8d3 Mon Sep 17 00:00:00 2001 From: keisuke-umezawa Date: Mon, 5 Feb 2024 23:24:30 +0900 Subject: [PATCH] Fix unit test with optuna master --- python_tests/test_cached_extra_study_property.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_tests/test_cached_extra_study_property.py b/python_tests/test_cached_extra_study_property.py index dcd5bc5e2..381cbcca1 100644 --- a/python_tests/test_cached_extra_study_property.py +++ b/python_tests/test_cached_extra_study_property.py @@ -132,7 +132,7 @@ def test_contains_failed_trials(self) -> None: create_trial( state=TrialState.COMPLETE, value=0, distributions=distributions, params=params ), - create_trial(state=TrialState.FAIL, value=0, distributions={}, params={}), + create_trial(state=TrialState.FAIL, value=None, distributions={}, params={}), create_trial( state=TrialState.COMPLETE, value=0, distributions=distributions, params=params ), @@ -235,7 +235,7 @@ def test_contains_failed_trials(self) -> None: ), create_trial( state=TrialState.FAIL, - value=0, + value=None, distributions={}, params={}, user_attrs={"bar": "bar"},