Skip to content

Commit

Permalink
fix DocTestFilter = nothing (redo JuliaDocs#1696)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Sep 19, 2023
1 parent fea343c commit 669d114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doctests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ function debug_report(; result, expected_filtered, evaluated, evaluated_filtered
end

function collect_doctest_filters(doc::Documenter.Document, meta::Dict)
meta_block_filters = get(meta, :DocTestFilters, [])
meta_block_filters == nothing && meta_block_filters == []
meta_block_filters = get(Vector{Any}, meta, :DocTestFilters)
meta_block_filters === nothing && (meta_block_filters = [])
doctest_local_filters = get(meta[:LocalDocTestArguments], :filter, [])
[doc.user.doctestfilters; meta_block_filters; doctest_local_filters]
end
Expand Down

0 comments on commit 669d114

Please sign in to comment.