diff --git a/stdlib/Test/src/Test.jl b/stdlib/Test/src/Test.jl index 260f6e33bac7d..461c48026944e 100644 --- a/stdlib/Test/src/Test.jl +++ b/stdlib/Test/src/Test.jl @@ -86,7 +86,7 @@ struct Pass <: Result data value source::Union{Nothing,LineNumberNode} - function Pass(test_type::Symbol, orig_expr, data, thrown, source) + function Pass(test_type::Symbol, orig_expr, data, thrown, source=nothing) return new(test_type, orig_expr, data, thrown isa String ? "String" : thrown, source) end end