Skip to content

Commit cbe5890

Browse files
committed
Skip broken acoth test
1 parent 7a9f329 commit cbe5890

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

test/test_factorizations.jl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using MatrixAlgebraKit:
3131
trunctol
3232
using Random: Random
3333
using StableRNGs: StableRNG
34-
using Test: @inferred, @test, @test_broken, @test_throws, @testset
34+
using Test: @inferred, @test, @test_throws, @testset
3535

3636
@testset "Matrix functions (T=$elt)" for elt in (Float32, Float64, ComplexF64)
3737
for matrixt in (Matrix, AbstractMatrix)
@@ -55,13 +55,10 @@ using Test: @inferred, @test, @test_broken, @test_throws, @testset
5555
for f in MATRIX_FUNCTIONS_LOW_ACCURACY
5656
@eval begin
5757
fa = $f($a)
58-
if !Sys.isapple() && ($elt <: Real)
59-
# `acoth` appears to be broken on this matrix on Windows and Ubuntu
60-
# for real matrices.
61-
@test_broken Matrix(fa) $f(Matrix($a)) rtol = eps(real($elt))
62-
else
63-
@test Matrix(fa) $f(Matrix($a)) rtol = eps(real($elt))
64-
end
58+
# `acoth` appears to be broken on this matrix on Windows and Ubuntu
59+
# for real matrices.
60+
skip = !Sys.isapple() && ($elt <: Real)
61+
@test Matrix(fa) $f(Matrix($a)) rtol = eps(real($elt)) skip = skip
6562
@test fa isa BlockSparseMatrix
6663
@test issetequal(eachblockstoredindex(fa), [Block(1, 1), Block(2, 2)])
6764
end

0 commit comments

Comments
 (0)