From 615ce27ff5116863f52fdb2d95ff325ca87c50a2 Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Thu, 14 Dec 2023 14:23:48 -0600 Subject: [PATCH] nest log and throws tests (1.11-nightly compat) --- test/pls.jl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/pls.jl b/test/pls.jl index 41e12a6ce..693609a41 100644 --- a/test/pls.jl +++ b/test/pls.jl @@ -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