Skip to content

Commit 325c5f9

Browse files
committed
added filter to ignore source of warnings in doctest
1 parent da3eefe commit 325c5f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/experimental.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ julia> # Typed varinfo cannot handle this random support model properly
7070
# Hence, this this model requires untyped varinfo.
7171
vi = determine_suitable_varinfo(model);
7272
┌ Warning: Model seems incompatible with typed varinfo. Falling back to untyped varinfo.
73-
└ @ DynamicPPLJETExt /drive-2/Projects/public/DynamicPPL.jl/ext/DynamicPPLJETExt.jl:48
73+
└ @ DynamicPPLJETExt ~/.julia/dev/DynamicPPL.jl/ext/DynamicPPLJETExt.jl:48
7474
7575
julia> vi isa typeof(DynamicPPL.untyped_varinfo(model))
7676
true

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ include("test_util.jl")
106106
# Older versions do not have `;;]` but instead just `]` at end of the line
107107
# => need to treat `;;]` and `]` as the same, i.e. ignore them if at the end of a line
108108
r"(;;){0,1}\]$"m,
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]+",
109112
]
110113
doctest(DynamicPPL; manual=false, doctestfilters=doctestfilters)
111114
end

0 commit comments

Comments
 (0)