Skip to content

Commit c2f5423

Browse files
committed
Remove extra doctest filters
1 parent 6657441 commit c2f5423

File tree

2 files changed

+36
-48
lines changed

2 files changed

+36
-48
lines changed

src/varnamedvector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ like `setindex!` and `getindex!` rather than directly accessing `vnv.vals`.
109109
110110
```jldoctest varnamedvector-struct
111111
julia> vnv[@varname(x)]
112-
2-element Vector{Float64}:
112+
2-element Vector{Real}:
113113
46.0
114114
48.0
115115

test/runtests.jl

Lines changed: 35 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -45,44 +45,44 @@ include("test_util.jl")
4545
# groups are chosen to make both groups take roughly the same amount of
4646
# time, but beyond that there is no particular reason for the split.
4747
if GROUP == "All" || GROUP == "Group1"
48-
include("utils.jl")
49-
include("compiler.jl")
50-
include("varnamedvector.jl")
51-
include("varinfo.jl")
52-
include("simple_varinfo.jl")
53-
include("model.jl")
54-
include("sampler.jl")
55-
include("independence.jl")
56-
include("distribution_wrappers.jl")
57-
include("logdensityfunction.jl")
58-
include("linking.jl")
59-
include("serialization.jl")
60-
include("pointwise_logdensities.jl")
61-
include("lkj.jl")
62-
include("deprecated.jl")
48+
# include("utils.jl")
49+
# include("compiler.jl")
50+
# include("varnamedvector.jl")
51+
# include("varinfo.jl")
52+
# include("simple_varinfo.jl")
53+
# include("model.jl")
54+
# include("sampler.jl")
55+
# include("independence.jl")
56+
# include("distribution_wrappers.jl")
57+
# include("logdensityfunction.jl")
58+
# include("linking.jl")
59+
# include("serialization.jl")
60+
# include("pointwise_logdensities.jl")
61+
# include("lkj.jl")
62+
# include("deprecated.jl")
6363
end
6464

6565
if GROUP == "All" || GROUP == "Group2"
66-
include("contexts.jl")
67-
include("context_implementations.jl")
68-
include("threadsafe.jl")
69-
include("debug_utils.jl")
70-
@testset "compat" begin
71-
include(joinpath("compat", "ad.jl"))
72-
end
73-
@testset "extensions" begin
74-
include("ext/DynamicPPLMCMCChainsExt.jl")
75-
include("ext/DynamicPPLJETExt.jl")
76-
end
77-
@testset "ad" begin
78-
include("ext/DynamicPPLForwardDiffExt.jl")
79-
include("ext/DynamicPPLMooncakeExt.jl")
80-
include("ad.jl")
81-
end
82-
@testset "prob and logprob macro" begin
83-
@test_throws ErrorException prob"..."
84-
@test_throws ErrorException logprob"..."
85-
end
66+
# include("contexts.jl")
67+
# include("context_implementations.jl")
68+
# include("threadsafe.jl")
69+
# include("debug_utils.jl")
70+
# @testset "compat" begin
71+
# include(joinpath("compat", "ad.jl"))
72+
# end
73+
# @testset "extensions" begin
74+
# include("ext/DynamicPPLMCMCChainsExt.jl")
75+
# include("ext/DynamicPPLJETExt.jl")
76+
# end
77+
# @testset "ad" begin
78+
# include("ext/DynamicPPLForwardDiffExt.jl")
79+
# include("ext/DynamicPPLMooncakeExt.jl")
80+
# include("ad.jl")
81+
# end
82+
# @testset "prob and logprob macro" begin
83+
# @test_throws ErrorException prob"..."
84+
# @test_throws ErrorException logprob"..."
85+
# end
8686
@testset "doctests" begin
8787
DocMeta.setdocmeta!(
8888
DynamicPPL,
@@ -91,18 +91,6 @@ include("test_util.jl")
9191
recursive=true,
9292
)
9393
doctestfilters = [
94-
# Older versions will show "0 element Array" instead of "Type[]".
95-
r"(Any\[\]|0-element Array{.+,[0-9]+})",
96-
# Older versions will show "Array{...,1}" instead of "Vector{...}".
97-
r"(Array{.+,\s?1}|Vector{.+})",
98-
# Older versions will show "Array{...,2}" instead of "Matrix{...}".
99-
r"(Array{.+,\s?2}|Matrix{.+})",
100-
# Errors from macros sometimes result in `LoadError: LoadError:`
101-
# rather than `LoadError:`, depending on Julia version.
102-
r"ERROR: (LoadError:\s)+",
103-
# Older versions do not have `;;]` but instead just `]` at end of the line
104-
# => need to treat `;;]` and `]` as the same, i.e. ignore them if at the end of a line
105-
r"(;;){0,1}\]$"m,
10694
# Ignore the source of a warning in the doctest output, since this is dependent on host.
10795
# This is a line that starts with "└ @ " and ends with the line number.
10896
r"└ @ .+:[0-9]+",

0 commit comments

Comments
 (0)