diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index bca0abacf..fc7fa31e1 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -913,7 +913,7 @@ def test_simplified_interface_all_failed(mocker, hyperopt_conf, caplog) -> None: caplog.clear() hyperopt.hyperopter.init_spaces() assert log_has_re(r"The 'protection' space is included into *", caplog) - assert hyperopt.hyperopter.protection_space == [] + assert hyperopt.hyperopter.spaces["protection"] == [] def test_simplified_interface_buy(mocker, hyperopt_conf, capsys) -> None: