Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ trueAsBool
Method
trueAsBool
Lib/test/test_with.py:592–594 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
590
return
self.exit_result
591
592
def
trueAsBool():
593
with
cm(
lambda
: True):
594
self.fail(
"Should NOT see this"
)
595
trueAsBool()
596
597
def
falseAsBool():
Callers
nothing calls this directly
Calls
2
cm
Class · 0.85
fail
Method · 0.45
Tested by
no test coverage detected