Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify PyObjectArray finalizer gc test
Browse files Browse the repository at this point in the history
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
@@ -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.