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

Method test_except_line

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

Source from the content-addressed store, hash-verified

538 assert str(source) == " raise ValueError"
539
540 def test_except_line(self) -> None:
541 source = getstatement(2, self.source)
542 assert str(source) == "except Something:"
543
544 def test_except_body(self) -> None:
545 source = getstatement(3, self.source)

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected