MCPcopy Index your code
hub / github.com/python/cpython / TestCM

Class TestCM

Lib/test/test_contextlib.py:773–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771
772 def test_enter_context(self):
773 class TestCM(object):
774 def __enter__(self):
775 result.append(1)
776 def __exit__(self, *exc_details):
777 result.append(3)
778
779 result = []
780 cm = TestCM()

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…