From 95c58a10de707dcd4357f8dcf37df37188cf59c5 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 2 Jul 2020 21:14:08 -0700 Subject: [PATCH] Skip doctests on Julia 1.6 (#13) --- test/runtests.jl | 11 +++++++++++ test/test_doctest.jl | 6 +----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 40afb1c..0127769 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.5-" + @info "Skipping doctests on Julia $VERSION." + continue + end + end + include(file) end diff --git a/test/test_doctest.jl b/test/test_doctest.jl index 4fed5c4..032e572 100644 --- a/test/test_doctest.jl +++ b/test/test_doctest.jl @@ -5,11 +5,7 @@ using Documenter: doctest using Test @testset "doctest" begin - if lowercase(get(ENV, "JULIA_PKGEVAL", "false")) == "true" - @info "Skipping doctests on PkgEval." - else - doctest(LazyGroupBy) - end + doctest(LazyGroupBy) end end # module