Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ acquire
Method
acquire
Lib/test/lock_tests.py:397–400 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
395
rlock = self.locktype()
396
self.assertFalse(rlock.locked())
397
def
acquire():
398
result.append(rlock.locked())
399
rlock.acquire()
400
result.append(rlock.locked())
401
402
with
Bunch(acquire, 1):
403
pass
Callers
15
setUp
Method · 0.45
test_starting_threads
Method · 0.45
test_nt_and_posix_stack_size
Method · 0.45
test__count
Method · 0.45
task
Method · 0.45
test_unraisable_exception
Method · 0.45
__init__
Method · 0.45
enter
Method · 0.45
test_barrier
Method · 0.45
test_release
Method · 0.45
test_cond_acquire_success
Method · 0.45
test_cond_acquire_fail
Method · 0.45
Calls
2
append
Method · 0.45
locked
Method · 0.45
Tested by
no test coverage detected