Skip to content

Commit

Permalink
Quiet some noisy tests (JuliaLang#46277)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Aug 8, 2022
1 parent 649de67 commit bcda258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/deprecation_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ begin # tuple indexed by float deprecation
@test_throws Exception @test_warn r"`getindex(t::Tuple, i::Real)` is deprecated" getindex((1,2), -1.0)
end

@testset "@deprecated error message" begin
begin #@deprecated error message
@test_throws(
"if the third `export_old` argument is not specified or `true`,",
@eval @deprecate M.f() g()
Expand Down
6 changes: 4 additions & 2 deletions test/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,10 @@ end
try
push!(LOAD_PATH, tmp)
write(joinpath(tmp, "BadCase.jl"), "module badcase end")
@test_throws ErrorException("package `BadCase` did not define the expected module `BadCase`, \
check for typos in package module name") (@eval using BadCase)
@test_logs (:warn, r"The call to compilecache failed.*") match_mode=:any begin
@test_throws ErrorException("package `BadCase` did not define the expected module `BadCase`, \
check for typos in package module name") (@eval using BadCase)
end
finally
copy!(LOAD_PATH, old_loadpath)
end
Expand Down

0 comments on commit bcda258

Please sign in to comment.