Skip to content

Commit

Permalink
switch with_logger to test_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Mar 4, 2022
1 parent 3dc7217 commit b07fe00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/backtrace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ let bt, found = false
end

# issue 28618
Base.CoreLogging.with_logger(Base.CoreLogging.NullLogger()) do
@test_logs (:info, "") begin do
let bt, found = false
@info ""
bt = backtrace()
Expand All @@ -194,7 +194,7 @@ let bt, found = false
end
@test found
end
end # with_logger
end # @test_logs

# Syntax error locations appear in backtraces
let trace = try
Expand Down

0 comments on commit b07fe00

Please sign in to comment.