Skip to content

Commit

Permalink
Remove extra doctest filters (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm authored Jan 3, 2025
1 parent 6657441 commit b7fd9ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion src/varnamedvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ like `setindex!` and `getindex!` rather than directly accessing `vnv.vals`.
```jldoctest varnamedvector-struct
julia> vnv[@varname(x)]
2-element Vector{Float64}:
2-element Vector{Real}:
46.0
48.0
Expand Down
12 changes: 0 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,6 @@ include("test_util.jl")
recursive=true,
)
doctestfilters = [
# Older versions will show "0 element Array" instead of "Type[]".
r"(Any\[\]|0-element Array{.+,[0-9]+})",
# Older versions will show "Array{...,1}" instead of "Vector{...}".
r"(Array{.+,\s?1}|Vector{.+})",
# Older versions will show "Array{...,2}" instead of "Matrix{...}".
r"(Array{.+,\s?2}|Matrix{.+})",
# Errors from macros sometimes result in `LoadError: LoadError:`
# rather than `LoadError:`, depending on Julia version.
r"ERROR: (LoadError:\s)+",
# Older versions do not have `;;]` but instead just `]` at end of the line
# => need to treat `;;]` and `]` as the same, i.e. ignore them if at the end of a line
r"(;;){0,1}\]$"m,
# Ignore the source of a warning in the doctest output, since this is dependent on host.
# This is a line that starts with "└ @ " and ends with the line number.
r"└ @ .+:[0-9]+",
Expand Down

0 comments on commit b7fd9ea

Please sign in to comment.