Skip to content

Commit bc67537

Browse files
committed
test: manually filter JET reports
1 parent 1e7cf1d commit bc67537

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

test/runtests.jl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,22 @@ elseif test_name == "jet"
1515
using JET
1616
using DynamicExpressions
1717
if VERSION >= v"1.10"
18-
JET.test_package(DynamicExpressions; target_defined_modules=true)
18+
struct MyReport end
19+
function JET.configured_reports(
20+
::MyReport, reports::Vector{JET.InferenceErrorReport}
21+
)
22+
filter!(reports) do report
23+
signature = report.sig
24+
return !any(
25+
x -> occursin("NonDifferentiableDeclarationsModule", string(x)),
26+
signature,
27+
)
28+
end
29+
return reports
30+
end
31+
JET.test_package(
32+
DynamicExpressions; target_defined_modules=true, report_config=MyReport()
33+
)
1934
end
2035
end
2136
elseif test_name == "main"

0 commit comments

Comments
 (0)