From 8182fd1dc7619863a7f15d35994b5554d6a89418 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Mon, 7 Oct 2024 13:21:29 +0100 Subject: [PATCH] Don't run doctests on 1.6 --- test/runtests.jl | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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