diff --git a/test/errorshow.jl b/test/errorshow.jl index 1cc7c1d603a10d..c1c45fa69c7de8 100644 --- a/test/errorshow.jl +++ b/test/errorshow.jl @@ -725,3 +725,13 @@ let bt = try @test occursin(" include(", bt_str) @test !occursin(" _include(", bt_str) end + +# 1d/2d error shouldn't appear in unsupported keywords arg #36325 +let err = nothing + try + identity([1,1]; bad_kwards = :julia) + catch err + err_str = sprint(showerror, err) + @test !occursin("2d", err_str) + end +end