File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ function enqueue(ptr::C.PyPtr)
103
103
end
104
104
105
105
function enqueue_all (ptrs)
106
- if any (!= (C. PYNULL ), ptrs) && C. CTX. is_initialized
106
+ if any (!= (C. PyNULL ), ptrs) && C. CTX. is_initialized
107
107
if C. PyGILState_Check () == 1
108
108
for ptr in ptrs
109
109
if ptr != C. PyNULL
Original file line number Diff line number Diff line change 577
577
@test pyeq (Bool, x. count (nothing ), 0 )
578
578
@test pyeq (Bool, x. count (" 2" ), 0 )
579
579
end
580
+
581
+ @testset " PyObjectArray" begin
582
+ # https://github.com/JuliaPy/PythonCall.jl/issues/543
583
+ # Here we check the finalizer does not error
584
+ # We must not reuse `arr` in this code once we finalize it!
585
+ let arr = PyObjectArray ([1 , 2 , 3 ])
586
+ finalize (arr)
587
+ end
588
+ end
580
589
end
You can’t perform that action at this time.
0 commit comments