Skip to content

Commit 95d9e41

Browse files
committed
Revert "remove check that GC queue must not be empty"
This reverts commit 4a772eb.
1 parent 4a772eb commit 95d9e41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/GC.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
finalize(obj)
66
end
77
end
8+
Threads.nthreads() > 1 &&
9+
VERSION >= v"1.10.0-" &&
10+
@test !isempty(PythonCall.GC.QUEUE.items)
811
PythonCall.GC.gc()
912
@test isempty(PythonCall.GC.QUEUE.items)
1013
end
@@ -16,6 +19,9 @@ end
1619
finalize(obj)
1720
end
1821
end
22+
Threads.nthreads() > 1 &&
23+
VERSION >= v"1.10.0-" &&
24+
@test !isempty(PythonCall.GC.QUEUE.items)
1925
GC.gc()
2026
@test isempty(PythonCall.GC.QUEUE.items)
2127
end

0 commit comments

Comments
 (0)