Skip to content

Commit fde27a5

Browse files
committed
Generalize exception type
In preparation for JuliaLang/julia#41885
1 parent 3a0d223 commit fde27a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/util/iterator.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ end
1919
@test sortstablemax([1, 4, 2, 7, 5]) == 7
2020
@test sortstablemax([8:10, 1:3, [], 4:23, 1:9], by=length) == 4:23
2121
@test sortstablemax([8:10, 1:3, 3:22, 4:23, 1:9], by=length) == 3:22
22-
@test_throws ArgumentError sortstablemax([])
22+
@test_throws Union{ArgumentError,MethodError} sortstablemax([])
2323
@test sortstablemax([], init=0) == 0
2424
end
2525

2626
@testset "sortstablemin" begin
2727
@test sortstablemin([1, 4, 2, 7, 5]) == 1
2828
@test sortstablemin([8:10, 1:3, [], 4:23, 1:9], by=length) == []
2929
@test sortstablemin([8:10, 1:3, 3:22, 4:23, 1:9], by=length) == 8:10
30-
@test_throws ArgumentError sortstablemin([])
30+
@test_throws Union{ArgumentError,MethodError} sortstablemin([])
3131
@test sortstablemin([], init=0) == 0
3232
end
3333
end # util.iterator

0 commit comments

Comments
 (0)