MCPcopy Create free account
hub / github.com/ipython/ipython / capture_exc

Method capture_exc

IPython/core/tests/test_ultratb.py:373–374  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

371 def test_find_recursion(self):
372 captured = []
373 def capture_exc(*args, **kwargs):
374 captured.append(sys.exc_info())
375 with mock.patch.object(ip, 'showtraceback', capture_exc):
376 ip.run_cell("r3o2()")
377

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected