Skip to content

Commit 62cdf3d

Browse files
author
Christopher Doris
committed
typo
1 parent cadc9d7 commit 62cdf3d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/err.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function errget()
2525
(pynew(t[]), pynew(v[]), pynew(b[]))
2626
end
2727

28-
errset(t::Py) = GC.@preserve y C.PyErr_SetNone(getptr(t))
28+
errset(t::Py) = GC.@preserve t C.PyErr_SetNone(getptr(t))
2929
errset(t::Py, v::Py) = GC.@preserve t v C.PyErr_SetObject(getptr(t), getptr(v))
3030
errset(t::Py, v::String) = GC.@preserve t C.PyErr_SetString(getptr(t), v)
3131

test/jlwrap.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@testset "iter" begin
2+
x1 = [1,2,3,4,5]
3+
x2 = pyjl(x1)
4+
x3 = pylist(x2)
5+
x4 = pyconvert(Vector{Int}, x3)
6+
@test x1 == x4
7+
end

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ Aqua.test_all(PythonCall)
99
@testset "concrete" begin
1010
include("concrete.jl")
1111
end
12+
@testset "jlwrap" begin
13+
include("jlwrap.jl")
14+
end
1215
end

0 commit comments

Comments
 (0)