Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ test_lock_context
Method
test_lock_context
Lib/test/_test_multiprocessing.py:1718–1720 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1716
p.join()
1717
1718
def
test_lock_context(self):
1719
with
self.Lock()
as
locked:
1720
self.assertTrue(locked)
1721
1722
def
test_rlock_context(self):
1723
with
self.RLock()
as
locked:
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.80
assertTrue
Method · 0.80
Tested by
no test coverage detected