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"},