Skip to content

Commit

Permalink
comment erroneous test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Doris committed Aug 2, 2024
1 parent 2a54ca9 commit ca64d21
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/GC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
finalize(obj)
end
end
Threads.nthreads() > 1 && @test !isempty(PythonCall.GC.QUEUE.items)
# The GC sometimes actually frees everything before this line.
# We can uncomment this line if we GIL.@release the above block once we have it.
# Threads.nthreads() > 1 && @test !isempty(PythonCall.GC.QUEUE.items)
PythonCall.GC.gc()
@test isempty(PythonCall.GC.QUEUE.items)
end
Expand All @@ -17,7 +19,9 @@ end
finalize(obj)
end
end
Threads.nthreads() > 1 && @test !isempty(PythonCall.GC.QUEUE.items)
# The GC sometimes actually frees everything before this line.
# We can uncomment this line if we GIL.@release the above block once we have it.
# Threads.nthreads() > 1 && @test !isempty(PythonCall.GC.QUEUE.items)
GC.gc()
@test isempty(PythonCall.GC.QUEUE.items)
end

0 comments on commit ca64d21

Please sign in to comment.