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

Method test_body

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

Source from the content-addressed store, hash-verified

534"""
535
536 def test_body(self) -> None:
537 source = getstatement(1, self.source)
538 assert str(source) == " raise ValueError"
539
540 def test_except_line(self) -> None:
541 source = getstatement(2, self.source)

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected