Skip to content

Commit bb4929d

Browse files
authored
Fix outdated usage of scrubbing for log test failures (JuliaLang#50759)
Fixes JuliaLang#50755.
1 parent edff86a commit bb4929d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Test/src/logging.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function record(ts::DefaultTestSet, t::LogTestFailure)
149149
if TESTSET_PRINT_ENABLE[]
150150
printstyled(ts.description, ": ", color=:white)
151151
print(t)
152-
Base.show_backtrace(stdout, scrub_backtrace(backtrace()))
152+
Base.show_backtrace(stdout, scrub_backtrace(backtrace(), ts.file, extract_file(t.source)))
153153
println()
154154
end
155155
# Hack: convert to `Fail` so that test summarization works correctly

0 commit comments

Comments
 (0)