From 48d8a65fea0e846508930aeaa6d8b7724132d3b3 Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 8 Sep 2021 13:53:28 +1200 Subject: [PATCH] [Test] relax inferred in attribute_value_type --- src/Test/Test.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Test/Test.jl b/src/Test/Test.jl index 430643258e..9effe3848f 100644 --- a/src/Test/Test.jl +++ b/src/Test/Test.jl @@ -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