From 29345da40af3ab971c154d5ce8b2d981301bd3a3 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 30 Jun 2021 15:19:37 +0200 Subject: [PATCH] make "Add information to passing tests" a bit more backwards compatible --- stdlib/Test/src/Test.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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