Skip to content

Commit 70bb546

Browse files
committed
Fix more tests
1 parent 597501b commit 70bb546

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

test/optimisation/Optimisation.jl

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -623,16 +623,9 @@ using Turing
623623
m = DynamicPPL.contextualize(
624624
gdemo_default, ADUtils.ADTypeCheckContext(adbackend, gdemo_default.context)
625625
)
626-
if adbackend isa AutoForwardDiff
627-
# TODO: Figure out why this is happening.
628-
# https://github.com/TuringLang/Turing.jl/issues/2369
629-
@test_throws DivideError maximum_likelihood(m; adtype=adbackend)
630-
@test_throws DivideError maximum_a_posteriori(m; adtype=adbackend)
631-
else
632-
# These will error if the adbackend being used is not the one set.
633-
maximum_likelihood(m; adtype=adbackend)
634-
maximum_a_posteriori(m; adtype=adbackend)
635-
end
626+
# These will error if the adbackend being used is not the one set.
627+
maximum_likelihood(m; adtype=adbackend)
628+
maximum_a_posteriori(m; adtype=adbackend)
636629
end
637630
end
638631

0 commit comments

Comments
 (0)