Skip to content

Commit beb9309

Browse files
committed
clean: reduce total diff
1 parent f32f59c commit beb9309

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/optim/test_optimize.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,8 @@ def test_optimize_acqf_successfully_restarts_on_opt_failure(self):
725725
message = (
726726
"Optimization failed in `gen_candidates_scipy` with the following "
727727
"warning(s):\n[OptimizationWarning('Optimization failed within "
728-
"`scipy.optimize.minimize` with status 2 and message "
729-
"ABNORMAL_TERMINATION_IN_LNSRCH.')]\nTrying again with a new set "
730-
"of initial conditions."
728+
"`scipy.optimize.minimize` with status 2 and message ABNORMAL_TERMINATION"
729+
"_IN_LNSRCH.')]\nTrying again with a new set of initial conditions."
731730
)
732731
expected_warning_raised = any(
733732
issubclass(w.category, RuntimeWarning) and message in str(w.message)
@@ -792,9 +791,8 @@ def test_optimize_acqf_warns_on_second_opt_failure(self):
792791
message_1 = (
793792
"Optimization failed in `gen_candidates_scipy` with the following "
794793
"warning(s):\n[OptimizationWarning('Optimization failed within "
795-
"`scipy.optimize.minimize` with status 2 and message "
796-
"ABNORMAL_TERMINATION_IN_LNSRCH.')]\nTrying again with a new set "
797-
"of initial conditions."
794+
"`scipy.optimize.minimize` with status 2 and message ABNORMAL_TERMINATION"
795+
"_IN_LNSRCH.')]\nTrying again with a new set of initial conditions."
798796
)
799797

800798
message_2 = (

0 commit comments

Comments
 (0)