(self)
| 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 |