Skip to content

Commit ab79641

Browse files
author
Christopher Doris
committed
fix tests (bad merge)
1 parent d727e07 commit ab79641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/JlWrap.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ end
499499
if Setup.devdeps
500500
np = pyimport("numpy")
501501

502-
numeric = pyjl(Float64[1, 2, 3])
502+
numeric = pyjlarray(Float64[1, 2, 3])
503503
numeric_array = numeric.__array__()
504504
@test pyisinstance(numeric_array, np.ndarray)
505505
@test pyconvert(Vector{Float64}, numeric_array) == [1.0, 2.0, 3.0]
@@ -509,7 +509,7 @@ end
509509
numeric_data[1] = 42.0
510510
@test pyconvert(Vector{Float64}, numeric_no_copy) == [42.0, 2.0, 3.0]
511511

512-
string_array = pyjl(["a", "b"])
512+
string_array = pyjlarray(["a", "b"])
513513
string_result = string_array.__array__()
514514
@test pyisinstance(string_result, np.ndarray)
515515
@test pyconvert(Vector{String}, pybuiltins.list(string_result)) == ["a", "b"]

0 commit comments

Comments
 (0)