Skip to content

Commit f6b4c42

Browse files
committed
fix python reference to QUEUE
1 parent a7a3fb3 commit f6b4c42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pytest/test_all.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ def test_julia_gc():
115115
end
116116
end
117117
GC.gc()
118-
@test isempty(PythonCall.GC.QUEUE.items)
118+
Base.@lock PythonCall.GC.QUEUE begin
119+
@test isempty(PythonCall.GC.QUEUE[])
120+
end
119121
"""
120122
)
121123

0 commit comments

Comments
 (0)