MCPcopy
hub / github.com/Textualize/rich / test_capture

Function test_capture

tests/test_traceback.py:63–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def test_capture():
64 try:
65 1 / 0
66 except Exception:
67 tb = Traceback()
68 assert tb.trace.stacks[0].exc_type == "ZeroDivisionError"
69
70
71def test_no_exception():

Callers

nothing calls this directly

Calls 1

TracebackClass · 0.90

Tested by

no test coverage detected