From 143af977c659f52768e7ce5487f48f4c2ed9ae16 Mon Sep 17 00:00:00 2001 From: Abhro R <5664668+abhro@users.noreply.github.com> Date: Sat, 25 May 2024 15:53:41 -0400 Subject: [PATCH] Make doctests version dependent --- test/runtests.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index f406fc1..127369a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -3,9 +3,11 @@ using ConstructionBase using Test using Documenter -@testset "Doctests" begin - DocMeta.setdocmeta!(WCS, :DocTestSetup, :(using WCS); recursive=true) - doctest(WCS) +if VERSION >= v"1.6.0" + @testset "Doctests" begin + DocMeta.setdocmeta!(WCS, :DocTestSetup, :(using WCS); recursive=true) + doctest(WCS) + end end wcs = WCSTransform(2;