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

Method test_excessive_nesting

Lib/test/test_contextlib.py:1161–1165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1159 stack.push(lambda *exc: {}[1])
1160
1161 def test_excessive_nesting(self):
1162 # The original implementation would die with RecursionError here
1163 with self.exit_stack() as stack:
1164 for i in range(10000):
1165 stack.callback(int)
1166
1167 def test_instance_bypass(self):
1168 class Example(object): pass

Callers

nothing calls this directly

Calls 1

callbackMethod · 0.45

Tested by

no test coverage detected