From 7f431a3e5856af16ccb1b52f71aa3e8fdd6ee38e Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 2 Jul 2020 17:48:01 -0700 Subject: [PATCH] Skip doctests on Julia 1.6 --- test/runtests.jl | 11 +++++++++++ test/test_doctest.jl | 4 ---- 2 files changed, 11 insertions(+), 4 deletions(-) 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