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)
103103end
104104
105105function enqueue_all (ptrs)
106- if any (!= (C. PYNULL ), ptrs) && C. CTX. is_initialized
106+ if any (!= (C. PyNULL ), ptrs) && C. CTX. is_initialized
107107 if C. PyGILState_Check () == 1
108108 for ptr in ptrs
109109 if ptr != C. PyNULL
Original file line number Diff line number Diff line change 577577 @test pyeq (Bool, x. count (nothing ), 0 )
578578 @test pyeq (Bool, x. count (" 2" ), 0 )
579579 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
580589end
You can’t perform that action at this time.
0 commit comments