MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / TestGILUnlock

Function TestGILUnlock

pkg/filament/cpython/gil_test.go:39–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func TestGILUnlock(t *testing.T) {
40 // failing non-deterministically in CI
41 t.SkipNow()
42 require.NoError(t, Initialize())
43 defer Finalize()
44 gil := NewGIL()
45 gil.Lock()
46 require.True(t, gil.Locked())
47 gil.Unlock()
48 require.False(t, gil.Locked())
49}

Callers

nothing calls this directly

Calls 6

LockMethod · 0.95
LockedMethod · 0.95
UnlockMethod · 0.95
InitializeFunction · 0.85
FinalizeFunction · 0.85
NewGILFunction · 0.85

Tested by

no test coverage detected