Skip to content

Commit ef64805

Browse files
authored
Update errors.jl
1 parent 5cbffbe commit ef64805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/General/errors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function test_errors_ModifyNotAllowed_constraint()
241241
err = MOI.ModifyConstraintNotAllowed(ci, change)
242242
@test_throws err MOI.modify(model, ci, change)
243243
contents = sprint(showerror, err)
244-
@test occursin("$(typeof(err)):" contents)
244+
@test occursin("$(typeof(err)):", contents)
245245
@test occursin("Modifying the constraints $ci", contents)
246246
@test occursin("## Fixing this error", contents)
247247
return
@@ -254,7 +254,7 @@ function test_errors_ModifyNotAllowed_objective()
254254
err = MOI.ModifyObjectiveNotAllowed(change)
255255
@test_throws err MOI.modify(model, attr, change)
256256
contents = sprint(showerror, err)
257-
@test occursin("$(typeof(err)):" contents)
257+
@test occursin("$(typeof(err)):", contents)
258258
@test occursin("Modifying the objective function with $change", contents)
259259
@test occursin("## Fixing this error", contents)
260260
return

0 commit comments

Comments
 (0)