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)

(cherry picked from commit d09c8e0)
  • Loading branch information
KristofferC committed Jul 5, 2021
1 parent bf84b5e commit a81b4f8
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 a81b4f8

Please sign in to comment.