File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -725,9 +725,8 @@ def test_optimize_acqf_successfully_restarts_on_opt_failure(self):
725
725
message = (
726
726
"Optimization failed in `gen_candidates_scipy` with the following "
727
727
"warning(s):\n [OptimizationWarning('Optimization failed within "
728
- "`scipy.optimize.minimize` with status 2 and message "
729
- "ABNORMAL_TERMINATION_IN_LNSRCH.')]\n Trying again with a new set "
730
- "of initial conditions."
728
+ "`scipy.optimize.minimize` with status 2 and message ABNORMAL_TERMINATION"
729
+ "_IN_LNSRCH.')]\n Trying again with a new set of initial conditions."
731
730
)
732
731
expected_warning_raised = any (
733
732
issubclass (w .category , RuntimeWarning ) and message in str (w .message )
@@ -792,9 +791,8 @@ def test_optimize_acqf_warns_on_second_opt_failure(self):
792
791
message_1 = (
793
792
"Optimization failed in `gen_candidates_scipy` with the following "
794
793
"warning(s):\n [OptimizationWarning('Optimization failed within "
795
- "`scipy.optimize.minimize` with status 2 and message "
796
- "ABNORMAL_TERMINATION_IN_LNSRCH.')]\n Trying again with a new set "
797
- "of initial conditions."
794
+ "`scipy.optimize.minimize` with status 2 and message ABNORMAL_TERMINATION"
795
+ "_IN_LNSRCH.')]\n Trying again with a new set of initial conditions."
798
796
)
799
797
800
798
message_2 = (
You can’t perform that action at this time.
0 commit comments