Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ falseAsBool
Method
falseAsBool
Lib/test/test_with.py:597–599 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
595
trueAsBool()
596
597
def
falseAsBool():
598
with
cm(
lambda
: False):
599
self.fail(
"Should raise"
)
600
self.assertRaises(AssertionError, falseAsBool)
601
602
def
failAsBool():
Callers
nothing calls this directly
Calls
2
cm
Class · 0.85
fail
Method · 0.45
Tested by
no test coverage detected