Skip to content

Commit d09c8e0

Browse files
authored
make "Add information to passing tests" a bit more backwards compatible (#41424)
1 parent ebc8f3c commit d09c8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Test/src/Test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct Pass <: Result
8686
data
8787
value
8888
source::Union{Nothing,LineNumberNode}
89-
function Pass(test_type::Symbol, orig_expr, data, thrown, source)
89+
function Pass(test_type::Symbol, orig_expr, data, thrown, source=nothing)
9090
return new(test_type, orig_expr, data, thrown isa String ? "String" : thrown, source)
9191
end
9292
end

0 commit comments

Comments
 (0)