Skip to content

Commit 0c0a1bc

Browse files
committed
Fix tests in Julia v1.10
1 parent 75ab024 commit 0c0a1bc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_blocksparsearrays.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ arrayts = (Array, JLArray)
6464
@test_broken inv(a)
6565
end
6666

67-
if arrayt === Array && elt <: Real
67+
if (VERSION v"1.11-" && arrayt === Array && elt <: Complex) ||
68+
(arrayt === Array && elt <: Real)
6869
u, s, v = svd_compact(a)
6970
@test Array(u * s * v) Array(a)
7071
else
@@ -134,7 +135,10 @@ end
134135
@test_broken exp(a)
135136
end
136137

137-
if arrayt === Array
138+
if VERSION < v"1.11-" && elt <: Complex
139+
# Broken because of type stability issue in Julia v1.10.
140+
@test_broken svd_compact(a)
141+
elseif arrayt === Array
138142
u, s, v = svd_compact(a)
139143
@test u * s * v a
140144
@test blocktype(u) === blocktype(a)

0 commit comments

Comments
 (0)