MCPcopy
hub / github.com/pytest-dev/pytest / test_except_body

Method test_except_body

testing/code/test_source.py:544–546  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

542 assert str(source) == "except Something:"
543
544 def test_except_body(self) -> None:
545 source = getstatement(3, self.source)
546 assert str(source) == " raise IndexError(1)"
547
548 def test_else(self) -> None:
549 source = getstatement(5, self.source)

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected