Skip to content

Commit

Permalink
[Test] allow skipping ScalarFunctionConstantNotZero errors (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 27, 2023
1 parent 3e34d4c commit acab995
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Test/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ macro requires(x)
end

function _error_handler(
err::Union{MOI.NotAllowedError,MOI.UnsupportedError,RequirementUnmet},
err::Union{
MOI.NotAllowedError,
MOI.ScalarFunctionConstantNotZero,
MOI.UnsupportedError,
RequirementUnmet,
},
name::String,
warn_unsupported::Bool,
)
Expand Down

0 comments on commit acab995

Please sign in to comment.