Skip to content

Commit

Permalink
Fix doctest testing on Julia 1.11 (#2594)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Oct 29, 2024
1 parent a0257f9 commit 056db65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/doctests/fix/tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 056db65

Please sign in to comment.