File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 98
98
@test_throws ErrorException prob " ..."
99
99
@test_throws ErrorException logprob " ..."
100
100
end
101
- @testset " doctests" begin
102
- DocMeta. setdocmeta! (
103
- DynamicPPL,
104
- :DocTestSetup ,
105
- :(using DynamicPPL, Distributions);
106
- recursive= true ,
107
- )
108
- doctestfilters = [
109
- # Ignore the source of a warning in the doctest output, since this is dependent on host.
110
- # This is a line that starts with "└ @ " and ends with the line number.
111
- r" └ @ .+:[0-9]+" ,
112
- ]
113
- doctest (DynamicPPL; manual= false , doctestfilters= doctestfilters)
101
+ if ! IS_PRERELEASE
102
+ # Don't run doctests on prerelease as error messages etc. may vary
103
+ @testset " doctests" begin
104
+ DocMeta. setdocmeta! (
105
+ DynamicPPL,
106
+ :DocTestSetup ,
107
+ :(using DynamicPPL, Distributions);
108
+ recursive= true ,
109
+ )
110
+ doctestfilters = [
111
+ # Ignore the source of a warning in the doctest output, since this is dependent on host.
112
+ # This is a line that starts with "└ @ " and ends with the line number.
113
+ r" └ @ .+:[0-9]+" ,
114
+ ]
115
+ doctest (DynamicPPL; manual= false , doctestfilters= doctestfilters)
116
+ end
114
117
end
115
118
end
116
119
end
You can’t perform that action at this time.
0 commit comments