Skip to content

Commit 780d892

Browse files
committed
Support JET@0.12 in tests
1 parent e477922 commit 780d892

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ChainRulesCore = "0.9.44, 0.10, 1"
2121
ChainRulesTestUtils = "0.6.8, 0.7, 1"
2222
ExplicitImports = "1.13.2"
2323
IrrationalConstants = "0.1, 0.2"
24-
JET = "0.9, 0.10"
24+
JET = "0.9, 0.12"
2525
LogExpFunctions = "0.3.2, 1"
2626
OpenLibm_jll = "0.7, 0.8"
2727
OpenSpecFun_jll = "0.5"

test/qa.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ end
5454
@test ExplicitImports.check_no_self_qualified_accesses(SpecialFunctions) === nothing
5555
end
5656

57-
@testset "JET" begin
58-
# Check that there are no undefined global references and undefined field accesses
59-
JET.test_package(SpecialFunctions; target_defined_modules = true, mode = :typo)
57+
if VERSION < v"1.12" || JET.JET_AVAILABLE
58+
@testset "JET" begin
59+
# Check that there are no undefined global references and undefined field accesses
60+
JET.test_package(SpecialFunctions; target_modules = (SpecialFunctions,), mode = :typo)
6061

61-
# Analyze methods based on their declared signature
62-
JET.report_package(SpecialFunctions; target_defined_modules = true)
62+
# Analyze methods based on their declared signature
63+
JET.report_package(SpecialFunctions; target_modules = (SpecialFunctions,))
64+
end
6365
end

0 commit comments

Comments
 (0)