diff --git a/test/pdmtypes.jl b/test/pdmtypes.jl index ab4bac1..2d44b80 100644 --- a/test/pdmtypes.jl +++ b/test/pdmtypes.jl @@ -305,11 +305,14 @@ using Test @test C - B ≈ Matrix(C) - Matrix(B) end - # https://github.com/JuliaStats/PDMats.jl/pull/207 - @testset "PDMat from SymTridiagonal" begin - S = SymTridiagonal(fill(4, 4), fill(1, 3)) - M = @inferred(PDMat(S)) - @test M isa PDMat{Int,<:SymTridiagonal,<:Cholesky} - @test M == S + # Ref https://github.com/JuliaStats/PDMats.jl/pull/207 + # Note: `cholesky(::SymTridiagonal)` requires https://github.com/JuliaLang/julia/pull/44076 + if VERSION >= v"1.8.0-DEV.1526" + @testset "PDMat from SymTridiagonal" begin + S = SymTridiagonal(fill(4, 4), fill(1, 3)) + M = @inferred(PDMat(S)) + @test M isa PDMat{Int,<:SymTridiagonal,<:Cholesky} + @test M == S + end end end