File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -14,23 +14,27 @@ elseif test_name == "jet"
14
14
set_preferences! (" DynamicExpressions" , " instability_check" => " disable" ; force= true )
15
15
using JET
16
16
using DynamicExpressions
17
- if VERSION >= v " 1.10"
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
17
+ struct MyIgnoredModule
18
+ mod:: Module
19
+ end
20
+ function JET. match_module (
21
+ mod:: MyIgnoredModule , @nospecialize (report:: JET.InferenceErrorReport )
22
+ )
23
+ s_mod = string (mod. mod)
24
+ any (report. vst) do vst
25
+ occursin (s_mod, string (JET. linfomod (vst. linfo)))
30
26
end
27
+ end
28
+ if VERSION >= v " 1.10"
31
29
JET. test_package (
32
- DynamicExpressions; target_defined_modules= true , report_config= MyReport ()
30
+ DynamicExpressions;
31
+ target_defined_modules= true ,
32
+ ignored_modules= (
33
+ MyIgnoredModule (DynamicExpressions. NonDifferentiableDeclarationsModule),
34
+ ),
33
35
)
36
+ # TODO : Hack to get JET to ignore modules
37
+ # https://github.com/aviatesk/JET.jl/issues/570#issuecomment-2199167755
34
38
end
35
39
end
36
40
elseif test_name == " main"
You can’t perform that action at this time.
0 commit comments