Skip to content

Commit 102ded6

Browse files
apaz-clivtjnash
andauthored
Fix "no method matching" test (#288)
The text of the MethodError message is not a stable API, so use the currently stable API of checking the field value. Discussion at JuliaLang/julia#47369. Co-authored-by: Jameson Nash <[email protected]>
1 parent d7d80af commit 102ded6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/higherorderfns.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ using SparseArrays.HigherOrderFns: SparseVecStyle, SparseMatStyle
670670
end
671671
@test err isa MethodError
672672
@test !occursin("is ambiguous", sprint(showerror, err))
673-
@test occursin("no method matching _copy(::typeof(rand))", sprint(showerror, err))
673+
@test err.f === SparseArrays.HigherOrderFns._copy
674674
end
675675

676676
@testset "Sparse outer product, for type $T and vector $op" for

0 commit comments

Comments
 (0)