Skip to content

Commit

Permalink
nest log and throws tests (1.11-nightly compat)
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Dec 14, 2023
1 parent 4c98ad4 commit 615ce27
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/pls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -700,13 +700,6 @@ end
@testset "methods we don't define" begin
m = first(models(:sleepstudy))
for f in [r2, adjr2]
@test_logs (:error,) begin
try
f(m)
catch
# capture the error, do nothing
end
end
@test_throws MethodError @suppress f(m)
@test_logs (:error,) @test_throws MethodError f(m)
end
end

0 comments on commit 615ce27

Please sign in to comment.