diff --git a/test/runtests.jl b/test/runtests.jl index 87a20c10..a52a86e6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -4,6 +4,17 @@ using Test @testset "$file" for file in sort([ file for file in readdir(@__DIR__) if match(r"^test_.*\.jl$", file) !== nothing ]) + + if file == "test_doctest.jl" + if lowercase(get(ENV, "JULIA_PKGEVAL", "false")) == "true" + @info "Skipping doctests on PkgEval." + continue + elseif VERSION >= v"1.6-" + @info "Skipping doctests on Julia $VERSION." + continue + end + end + include(file) end end # module diff --git a/test/test_doctest.jl b/test/test_doctest.jl index e674bac6..da206951 100644 --- a/test/test_doctest.jl +++ b/test/test_doctest.jl @@ -5,10 +5,6 @@ using Documenter: doctest using Test @testset "doctest" begin - if lowercase(get(ENV, "JULIA_PKGEVAL", "false")) == "true" - @info "Skipping doctests on PkgEval." - return - end doctest(ThreadsX) end