Skip to content

Commit 1afe773

Browse files
committed
Use Setup module for ArrayValue numpy tests
1 parent 421dc5e commit 1afe773

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/JlWrap.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
end
216216
end
217217

218-
@testitem "array" begin
218+
@testitem "array" setup=[Setup] begin
219219
@testset "type" begin
220220
@test pyis(pytype(pyjl(fill(nothing))), PythonCall.pyjlarraytype)
221221
@test pyis(pytype(pyjl([1 2; 3 4])), PythonCall.pyjlarraytype)
@@ -314,8 +314,7 @@ end
314314
@test pyjlvalue(y) == [1 2; 3 4]
315315
end
316316
@testset "__array__" begin
317-
devdeps = PythonCall.C.CTX.which == :CondaPkg
318-
if devdeps
317+
if Setup.devdeps
319318
np = pyimport("numpy")
320319

321320
numeric = pyjl(Float64[1, 2, 3])
@@ -347,7 +346,7 @@ end
347346
sprint(showerror, err),
348347
)
349348
else
350-
@test_skip devdeps
349+
@test_skip Setup.devdeps
351350
end
352351
end
353352
@testset "array_interface" begin

0 commit comments

Comments
 (0)