MCPcopy Create free account
hub / github.com/apache/arrow / exhibit_signal_refcycle

Function exhibit_signal_refcycle

python/pyarrow/tests/test_util.py:189–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187
188
189def exhibit_signal_refcycle():
190 # Put an object in the frame locals and return a weakref to it.
191 # If `signal.getsignal` has a bug where it creates a reference cycle
192 # keeping alive the current execution frames, `obj` will not be
193 # destroyed immediately when this function returns.
194 obj = set()
195 signal.getsignal(signal.SIGINT)
196 return weakref.ref(obj)
197
198
199def test_signal_refcycle():

Callers 1

test_signal_refcycleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected