Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ cm
Class
cm
Lib/test/test_with.py:524–528 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
522
def
testRaisedStopIteration2(self):
523
# From bug 1462485
524
class
cm(object):
525
def
__enter__(self):
526
pass
527
def
__exit__(self, type, value, traceback):
528
pass
529
530
def
shouldThrow():
531
with
cm():
Callers
7
test_others
Method · 0.85
shouldThrow
Method · 0.85
trueAsBool
Method · 0.85
falseAsBool
Method · 0.85
failAsBool
Method · 0.85
test_exit_exception_explicit_none_context
Method · 0.85
test_async_exit_exception_explicit_none_context
Method · 0.85
Calls
no outgoing calls
Tested by
7
test_others
Method · 0.68
shouldThrow
Method · 0.68
trueAsBool
Method · 0.68
falseAsBool
Method · 0.68
failAsBool
Method · 0.68
test_exit_exception_explicit_none_context
Method · 0.68
test_async_exit_exception_explicit_none_context
Method · 0.68