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