Skip to content

Commit

Permalink
Fix outdated usage of scrubbing for log test failures (#50759)
Browse files Browse the repository at this point in the history
Fixes #50755.
  • Loading branch information
serenity4 authored Aug 2, 2023
1 parent edff86a commit bb4929d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Test/src/logging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function record(ts::DefaultTestSet, t::LogTestFailure)
if TESTSET_PRINT_ENABLE[]
printstyled(ts.description, ": ", color=:white)
print(t)
Base.show_backtrace(stdout, scrub_backtrace(backtrace()))
Base.show_backtrace(stdout, scrub_backtrace(backtrace(), ts.file, extract_file(t.source)))
println()
end
# Hack: convert to `Fail` so that test summarization works correctly
Expand Down

0 comments on commit bb4929d

Please sign in to comment.