Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/Test/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,7 @@ function _test_attribute_value_type(
attribute::Union{MOI.AbstractModelAttribute,MOI.AbstractOptimizerAttribute},
)
T = MOI.attribute_value_type(attribute)
@static if VERSION < v"1.5"
@test MOI.get(model, attribute) isa T
else
@test @inferred(T, MOI.get(model, attribute)) isa T
end
@test MOI.get(model, attribute) isa T
return
end

Expand Down