Skip to content

Commit

Permalink
simplify PyObjectArray finalizer gc test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Doris committed Aug 22, 2024
1 parent b125039 commit 5b9e977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/JlWrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ end
# https://github.com/JuliaPy/PythonCall.jl/issues/543
# Here we check the finalizer does not error
# We must not reuse `arr` in this code once we finalize it!
let arr = PyObjectArray([pylist([1]), pylist([2])])
PythonCall.JlWrap.pyobjectarray_finalizer(arr)
let arr = PyObjectArray([1, 2, 3])
finalize(arr)
end
end
end

0 comments on commit 5b9e977

Please sign in to comment.