From c00aa873953d10edb33ac9e5846983d9516dbcab Mon Sep 17 00:00:00 2001 From: Sukera Date: Wed, 13 Mar 2024 09:53:45 +0100 Subject: [PATCH] Fixing CI on nightly broke regular CI on older versions - whoops! --- test/runtests.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index aaf39a5..f8f3766 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -153,7 +153,8 @@ const numTypes = union(getSubtypes(Integer), getSubtypes(AbstractFloat)) @testset "numsToZero" begin @testset "$T" for T in numTypes if VERSION >= v"1.7" - @test numsToZero(T) broken=(T == BigInt || T == BigFloat || T == Core.BFloat16) + v11 = VERSION.major == 1 && VERSION.minor >= 11 + @test numsToZero(T) broken=(T == BigInt || T == BigFloat || (v11 && T == Core.BFloat16)) else # we don't need to add Core.BFloat16 here, since it was only added in 1.11 if T != BigInt && T != BigFloat