From 056db6591c2a0587556ec1b7f952b64202289fd4 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 29 Oct 2024 11:18:33 +0100 Subject: [PATCH] Fix doctest testing on Julia 1.11 (#2594) --- test/doctests/fix/tests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/doctests/fix/tests.jl b/test/doctests/fix/tests.jl index 474a3d0909..cf4248c9db 100644 --- a/test/doctests/fix/tests.jl +++ b/test/doctests/fix/tests.jl @@ -47,8 +47,8 @@ function test_doctest_fix(dir) # Load the expected results and adapt to various Julia versions: md_result = normalize_line_endings(joinpath(@__DIR__, "fixed.md")) - if VERSION < v"1.12-DEV" - # 1.12 Starts printing "in `Main`", so we remove that from the expected output. + if VERSION < v"1.11" + # 1.11 Starts printing "in `Main`", so we remove that from the expected output. md_result = replace(md_result, r"UndefVarError: `([^`]*)` not defined in `Main`" => s"UndefVarError: `\1` not defined") end if VERSION < v"1.11"