MCPcopy 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_othersMethod · 0.85
shouldThrowMethod · 0.85
trueAsBoolMethod · 0.85
falseAsBoolMethod · 0.85
failAsBoolMethod · 0.85

Calls

no outgoing calls

Tested by 7

test_othersMethod · 0.68
shouldThrowMethod · 0.68
trueAsBoolMethod · 0.68
falseAsBoolMethod · 0.68
failAsBoolMethod · 0.68