Skip to content

Commit 5c7ae3d

Browse files
committed
test: fix preference setting
1 parent 8045515 commit 5c7ae3d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
1010
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1111
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"
1212
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
13+
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
1314
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1415
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
1516
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ if test_name == "enzyme"
1010
end
1111
elseif test_name == "jet"
1212
@safetestset "JET" begin
13-
using DynamicExpressions
13+
using Preferences
14+
set_preferences!("DynamicExpressions", "instability_check" => "disable")
1415
using JET
16+
using DynamicExpressions
1517
if VERSION >= v"1.10"
1618
JET.test_package(DynamicExpressions; target_defined_modules=true)
1719
end

0 commit comments

Comments
 (0)