Skip to content

Commit

Permalink
make "Add information to passing tests" a bit more backwards compatib…
Browse files Browse the repository at this point in the history
…le (#41424)
  • Loading branch information
KristofferC authored Jul 1, 2021
1 parent ebc8f3c commit d09c8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Test/src/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d09c8e0

Please sign in to comment.