diff --git a/test/runtests.jl b/test/runtests.jl index 42cdb6d..1c33295 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -33,13 +33,15 @@ if GROUP == "All" || GROUP in ("ForwardDiff", "Zygote", "ReverseDiff", "Tracker" include("ad/distributions.jl") end -# Run doctests -@testset "doctests" begin - DocMeta.setdocmeta!( - DistributionsAD, - :DocTestSetup, - :(using DistributionsAD); - recursive=true, - ) - doctest(DistributionsAD; manual=false) +# Run doctests (but not on Julia 1.6 as rng seed behaves differently) +if VERSION > v"1.6" + @testset "doctests" begin + DocMeta.setdocmeta!( + DistributionsAD, + :DocTestSetup, + :(using DistributionsAD); + recursive=true, + ) + doctest(DistributionsAD; manual=false) + end end