From 42246e2319bf54bf4ad4c9fd527e3c611acda5aa Mon Sep 17 00:00:00 2001 From: Gabriel Gerlero Date: Fri, 12 May 2023 23:16:37 -0300 Subject: [PATCH] Fix test failures with Julia nightly --- test/initializers.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/initializers.jl b/test/initializers.jl index c0e8fb250..4900f2636 100644 --- a/test/initializers.jl +++ b/test/initializers.jl @@ -58,9 +58,9 @@ end @test Base.typed_vcat(Union{}) isa Vector{Union{}} @test Base.typed_hcat(Union{}) isa Vector{Union{}} @test Base.typed_hvcat(Union{}, ()) isa Vector{Union{}} -@test_throws MethodError Union{}[1] -@test_throws MethodError Union{}[1 2] -@test_throws MethodError Union{}[1; 2] -@test_throws MethodError Union{}[1 2; 3 4] +@test_throws Union{MethodError, ArgumentError} Union{}[1] +@test_throws Union{MethodError, ArgumentError} Union{}[1 2] +@test_throws Union{MethodError, ArgumentError} Union{}[1; 2] +@test_throws Union{MethodError, ArgumentError} Union{}[1 2; 3 4] end