Skip to content

Commit d68afce

Browse files
authored
Change test
1 parent ea9bcdc commit d68afce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/runtests.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,7 @@ end
295295
end
296296

297297
@testset "ADgradient missing method" begin
298-
msg = "Don't know how to AD with Foo, consider `import Foo` if there is such a package."
299-
@test_logs((:info, msg), @test_throws(MethodError, ADgradient(:Foo, TestLogDensity2())))
298+
@test_throws "Don't know how to AD with Foo, consider `import Foo` if there is such a package." ADgradient(:Foo, TestLogDensity2())
300299
end
301300

302301
@testset "benchmark ForwardDiff chunk size" begin

0 commit comments

Comments
 (0)