Skip to content

Commit a6f93cb

Browse files
authored
[Test] relax inferred in attribute_value_type (#1594)
1 parent 813e067 commit a6f93cb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Test/Test.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,7 @@ function _test_attribute_value_type(
404404
attribute::Union{MOI.AbstractModelAttribute,MOI.AbstractOptimizerAttribute},
405405
)
406406
T = MOI.attribute_value_type(attribute)
407-
@static if VERSION < v"1.5"
408-
@test MOI.get(model, attribute) isa T
409-
else
410-
@test @inferred(T, MOI.get(model, attribute)) isa T
411-
end
407+
@test MOI.get(model, attribute) isa T
412408
return
413409
end
414410

0 commit comments

Comments
 (0)