Skip to content

Commit

Permalink
Fix outdated usage of scrubbing for log test failures (JuliaLang#50759)
Browse files Browse the repository at this point in the history
Fixes JuliaLang#50755.

(cherry picked from commit bb4929d)
  • Loading branch information
serenity4 authored and Drvi committed Jun 7, 2024
1 parent aad12ec commit aa58f68
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 aa58f68

Please sign in to comment.