Skip to content

Commit f55c09a

Browse files
committed
Fix version
1 parent f3c3776 commit f55c09a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/utils.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ function test_coloring_decompression(
120120
end
121121
end
122122

123-
OptimalColoringKnown = Union{Diagonal,Bidiagonal,Tridiagonal,BandedMatrix,BlockBandedMatrix}
124-
125123
function test_structured_coloring_decompression(A::AbstractMatrix)
126124
column_problem = ColoringProblem(; structure=:nonsymmetric, partition=:column)
127125
row_problem = ColoringProblem(; structure=:nonsymmetric, partition=:row)
@@ -135,7 +133,10 @@ function test_structured_coloring_decompression(A::AbstractMatrix)
135133
@test D == A
136134
@test nameof(typeof(D)) == nameof(typeof(A))
137135
@test structurally_orthogonal_columns(A, color)
138-
@test color == ArrayInterface.matrix_colors(A)
136+
if VERSION >= v"1.10" || A isa Union{Diagonal,Bidiagonal,Tridiagonal}
137+
# banded matrices not supported by ArrayInterface on Julia 1.6
138+
@test color == ArrayInterface.matrix_colors(A)
139+
end
139140

140141
# Row
141142
result = coloring(A, row_problem, algo)

0 commit comments

Comments
 (0)