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

Function test_suppress

tests/test_traceback.py:286–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284
285
286def test_suppress():
287 try:
288 1 / 0
289 except Exception:
290 traceback = Traceback(suppress=[pytest, "foo"])
291 assert len(traceback.suppress) == 2
292 assert "pytest" in traceback.suppress[0]
293 assert "foo" in traceback.suppress[1]
294
295
296@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

TracebackClass · 0.90

Tested by

no test coverage detected