Skip to content

Commit 2816fde

Browse files
committed
fix IncompatibleOptimizerError location
1 parent d48893b commit 2816fde

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/OptimizationPRIMA/test/runtests.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ using Test
1616
@test 10 * sol.objective < l1
1717
sol = OptimizationBase.solve(prob, LINCOA(), maxiters = 1000)
1818
@test 10 * sol.objective < l1
19-
@test_throws SciMLBase.IncompatibleOptimizerError OptimizationBase.solve(prob,
20-
COBYLA(),
21-
maxiters = 1000)
19+
@test_throws OptimizationBase.IncompatibleOptimizerError OptimizationBase.solve(
20+
prob, COBYLA(), maxiters = 1000)
2221

2322
function con2_c(res, x, p)
2423
res .= [x[1] + x[2], x[2] * sin(x[1]) - x[1]]

0 commit comments

Comments
 (0)